Class ContainerAwareTestSupport

  • All Implemented Interfaces:
    org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.AfterTestExecutionCallback, org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.BeforeTestExecutionCallback, org.junit.jupiter.api.extension.Extension

    public class ContainerAwareTestSupport
    extends org.apache.camel.test.junit5.CamelTestSupport
    • Field Summary

      • Fields inherited from class org.apache.camel.test.junit5.CamelTestSupport

        camelContextService, camelTestSupportExtension, consumer, context, extra, fluentTemplate, ROUTE_COVERAGE_ENABLED, template
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void cleanupResources()  
      protected org.testcontainers.containers.Network containerNetwork()  
      protected long containerShutdownTimeout()  
      protected long containersStartupTimeout()  
      protected org.apache.camel.CamelContext createCamelContext()  
      protected org.testcontainers.containers.GenericContainer<?> createContainer()  
      protected List<org.testcontainers.containers.GenericContainer<?>> createContainers()  
      protected org.testcontainers.containers.GenericContainer<?> getContainer​(String containerName)  
      protected String getContainerHost​(String containerName)  
      protected int getContainerPort​(String containerName, int originalPort)  
      protected void setupResources()  
      • Methods inherited from class org.apache.camel.test.junit5.CamelTestSupport

        afterAll, afterTestExecution, applyCamelPostProcessor, assertExpression, assertMockEndpointsSatisfied, assertMockEndpointsSatisfied, assertPredicate, assertResolveLanguage, assertValidContext, beforeAll, beforeEach, beforeTestExecution, bindToRegistry, camelContextService, consumer, context, createCamelRegistry, createExchangeWithBody, createRouteBuilder, createRouteBuilders, debugAfter, debugBefore, disableJMX, doPostSetup, doPostTearDown, doPreSetup, doSpringBootCheck, enableJMX, fluentTemplate, getCamelContextService, getCurrentTestName, getMandatoryEndpoint, getMandatoryEndpoint, getMockEndpoint, getMockEndpoint, getRouteFilterExcludePattern, getRouteFilterIncludePattern, getShutdownTimeout, hasClassAnnotation, ignoreMissingLocationWithPropertiesComponent, isCreateCamelContextPerClass, isDumpRouteCoverage, isMockEndpoints, isMockEndpointsAndSkip, isUseAdviceWith, isUseDebugger, isUseRouteBuilder, postProcessTest, replaceRouteFromWith, resetMocks, resolveMandatoryEndpoint, resolveMandatoryEndpoint, sendBodies, sendBody, sendBody, setCamelContextService, setUp, setUseRouteBuilder, startCamelContext, stopCamelContext, tearDown, template, timeTaken, useJmx, useOverridePropertiesWithPropertiesComponent
    • Constructor Detail

      • ContainerAwareTestSupport

        public ContainerAwareTestSupport()
    • Method Detail

      • setupResources

        protected void setupResources()
                               throws Exception
        Overrides:
        setupResources in class org.apache.camel.test.junit5.CamelTestSupport
        Throws:
        Exception
      • cleanupResources

        protected void cleanupResources()
                                 throws Exception
        Overrides:
        cleanupResources in class org.apache.camel.test.junit5.CamelTestSupport
        Throws:
        Exception
      • createCamelContext

        protected org.apache.camel.CamelContext createCamelContext()
                                                            throws Exception
        Overrides:
        createCamelContext in class org.apache.camel.test.junit5.CamelTestSupport
        Throws:
        Exception
      • createContainer

        protected org.testcontainers.containers.GenericContainer<?> createContainer()
      • createContainers

        protected List<org.testcontainers.containers.GenericContainer<?>> createContainers()
      • containersStartupTimeout

        protected long containersStartupTimeout()
      • containerShutdownTimeout

        protected long containerShutdownTimeout()
      • containerNetwork

        protected org.testcontainers.containers.Network containerNetwork()
      • getContainer

        protected org.testcontainers.containers.GenericContainer<?> getContainer​(String containerName)
      • getContainerHost

        protected String getContainerHost​(String containerName)
      • getContainerPort

        protected int getContainerPort​(String containerName,
                                       int originalPort)