Class CamelSpringTestContextLoaderTestExecutionListener

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

    @Deprecated
    public class CamelSpringTestContextLoaderTestExecutionListener
    extends org.springframework.test.context.support.AbstractTestExecutionListener
    Deprecated.
    Helper for CamelSpringTestContextLoader that sets the test class state in CamelSpringTestHelper almost immediately before the loader initializes the Spring context.

    Implemented as a listener as the state can be set on a ThreadLocal and we are pretty sure that the same thread will be used to initialize the Spring context.

    • Constructor Detail

      • CamelSpringTestContextLoaderTestExecutionListener

        public CamelSpringTestContextLoaderTestExecutionListener()
        Deprecated.
    • Method Detail

      • getOrder

        public int getOrder()
        Deprecated.
        The default implementation returns Ordered.LOWEST_PRECEDENCE, thereby ensuring that custom listeners are ordered after default listeners supplied by the framework. Can be overridden by subclasses as necessary.
        Specified by:
        getOrder in interface org.springframework.core.Ordered
        Overrides:
        getOrder in class org.springframework.test.context.support.AbstractTestExecutionListener
      • prepareTestInstance

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