org.apache.camel.test.spring
Class CamelSpringTestContextLoaderTestExecutionListener

java.lang.Object
  extended by org.springframework.test.context.support.AbstractTestExecutionListener
      extended by 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.


Constructor Summary
CamelSpringTestContextLoaderTestExecutionListener()
           
 
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
 

Constructor Detail

CamelSpringTestContextLoaderTestExecutionListener

public CamelSpringTestContextLoaderTestExecutionListener()
Method Detail

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