Class MessagingLocalContainerInfraService<T extends org.testcontainers.containers.GenericContainer<T>>

java.lang.Object
org.apache.camel.test.infra.messaging.services.MessagingLocalContainerInfraService<T>
All Implemented Interfaces:
AutoCloseable, org.apache.camel.test.infra.common.services.ContainerService<T>, org.apache.camel.test.infra.common.services.InfrastructureService, MessagingInfraService

public class MessagingLocalContainerInfraService<T extends org.testcontainers.containers.GenericContainer<T>> extends Object implements MessagingInfraService, org.apache.camel.test.infra.common.services.ContainerService<T>
A specialized container that can be used to create message broker instances.
  • Constructor Details

    • MessagingLocalContainerInfraService

      public MessagingLocalContainerInfraService(T container, Function<T,String> endpointFunction)
  • Method Details

    • getContainer

      public T getContainer()
      Specified by:
      getContainer in interface org.apache.camel.test.infra.common.services.ContainerService<T extends org.testcontainers.containers.GenericContainer<T>>
    • defaultEndpoint

      public String defaultEndpoint()
      Description copied from interface: MessagingInfraService
      Gets the default endpoint for the messaging service (ie.: amqp://host:port, or tcp://host:port, etc)
      Specified by:
      defaultEndpoint in interface MessagingInfraService
      Returns:
      the endpoint URL as a string in the specific format used by the service
    • registerProperties

      public void registerProperties()
      Specified by:
      registerProperties in interface org.apache.camel.test.infra.common.services.InfrastructureService
    • initialize

      public void initialize()
      Specified by:
      initialize in interface org.apache.camel.test.infra.common.services.InfrastructureService
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in interface org.apache.camel.test.infra.common.services.InfrastructureService