public class CamelSpringTestContextLoaderTestExecutionListener
extends org.springframework.test.context.support.AbstractTestExecutionListener
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 and Description |
---|
CamelSpringTestContextLoaderTestExecutionListener() |
Modifier and Type | Method and Description |
---|---|
int |
getOrder()
The default implementation returns
Ordered.LOWEST_PRECEDENCE ,
thereby ensuring that custom listeners are ordered after default
listeners supplied by the framework. |
void |
prepareTestInstance(org.springframework.test.context.TestContext testContext) |
public CamelSpringTestContextLoaderTestExecutionListener()
public int getOrder()
Ordered.LOWEST_PRECEDENCE
,
thereby ensuring that custom listeners are ordered after default
listeners supplied by the framework. Can be overridden by subclasses
as necessary.getOrder
in interface org.springframework.core.Ordered
getOrder
in class org.springframework.test.context.support.AbstractTestExecutionListener
public void prepareTestInstance(org.springframework.test.context.TestContext testContext) throws Exception
prepareTestInstance
in interface org.springframework.test.context.TestExecutionListener
prepareTestInstance
in class org.springframework.test.context.support.AbstractTestExecutionListener
Exception
Apache Camel