Class CamelSpringBootExecutionListener

  • All Implemented Interfaces:
    org.springframework.core.Ordered, org.springframework.test.context.TestExecutionListener

    public class CamelSpringBootExecutionListener
    extends org.springframework.test.context.support.AbstractTestExecutionListener
    • Field Detail

      • threadApplicationContext

        protected static ThreadLocal<org.springframework.context.ConfigurableApplicationContext> threadApplicationContext
    • Constructor Detail

      • CamelSpringBootExecutionListener

        public CamelSpringBootExecutionListener()
    • Method Detail

      • getOrder

        public int getOrder()
        Returns the precedence that is used by Spring to choose the appropriate execution order of test listeners. See SpringTestExecutionListenerSorter.getPrecedence(Class) for more.
        Specified by:
        getOrder in interface org.springframework.core.Ordered
        Overrides:
        getOrder in class org.springframework.test.context.support.AbstractTestExecutionListener
      • beforeTestClass

        public void beforeTestClass​(org.springframework.test.context.TestContext testContext)
                             throws Exception
        Specified by:
        beforeTestClass in interface org.springframework.test.context.TestExecutionListener
        Overrides:
        beforeTestClass in class org.springframework.test.context.support.AbstractTestExecutionListener
        Throws:
        Exception
      • prepareTestInstance

        public void prepareTestInstance​(org.springframework.test.context.TestContext testContext)
                                 throws Exception
        Specified by:
        prepareTestInstance in interface org.springframework.test.context.TestExecutionListener
        Overrides:
        prepareTestInstance in class org.springframework.test.context.support.AbstractTestExecutionListener
        Throws:
        Exception
      • beforeTestMethod

        public void beforeTestMethod​(org.springframework.test.context.TestContext testContext)
                              throws Exception
        Specified by:
        beforeTestMethod in interface org.springframework.test.context.TestExecutionListener
        Overrides:
        beforeTestMethod in class org.springframework.test.context.support.AbstractTestExecutionListener
        Throws:
        Exception
      • afterTestMethod

        public void afterTestMethod​(org.springframework.test.context.TestContext testContext)
                             throws Exception
        Specified by:
        afterTestMethod in interface org.springframework.test.context.TestExecutionListener
        Overrides:
        afterTestMethod in class org.springframework.test.context.support.AbstractTestExecutionListener
        Throws:
        Exception