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.test.context.TestExecutionListener
public class CamelSpringTestContextLoaderTestExecutionListener
- extends org.springframework.test.context.support.AbstractTestExecutionListener
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.
Method Summary |
void |
prepareTestInstance(org.springframework.test.context.TestContext testContext)
|
Methods inherited from class org.springframework.test.context.support.AbstractTestExecutionListener |
afterTestClass, afterTestMethod, beforeTestClass, beforeTestMethod |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CamelSpringTestContextLoaderTestExecutionListener
public CamelSpringTestContextLoaderTestExecutionListener()
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
Apache Camel