Package org.apache.camel.test.spring
Class CamelSpringTestContextLoaderTestExecutionListener
- java.lang.Object
-
- org.springframework.test.context.support.AbstractTestExecutionListener
-
- org.apache.camel.test.spring.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 forCamelSpringTestContextLoaderthat sets the test class state inCamelSpringTestHelperalmost immediately before the loader initializes the Spring context. Implemented as a listener as the state can be set on aThreadLocaland we are pretty sure that the same thread will be used to initialize the Spring context.
-
-
Constructor Summary
Constructors Constructor Description CamelSpringTestContextLoaderTestExecutionListener()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intgetOrder()Deprecated.The default implementation returnsOrdered.LOWEST_PRECEDENCE, thereby ensuring that custom listeners are ordered after default listeners supplied by the framework.voidprepareTestInstance(org.springframework.test.context.TestContext testContext)Deprecated.
-
-
-
Method Detail
-
getOrder
public int getOrder()
Deprecated.The default implementation returnsOrdered.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:
getOrderin interfaceorg.springframework.core.Ordered- Overrides:
getOrderin classorg.springframework.test.context.support.AbstractTestExecutionListener
-
prepareTestInstance
public void prepareTestInstance(org.springframework.test.context.TestContext testContext) throws ExceptionDeprecated.- Specified by:
prepareTestInstancein interfaceorg.springframework.test.context.TestExecutionListener- Overrides:
prepareTestInstancein classorg.springframework.test.context.support.AbstractTestExecutionListener- Throws:
Exception
-
-