org.apache.camel.testng
Class AbstractCamelTestNGSpringContextTests

java.lang.Object
  extended by org.springframework.test.context.testng.AbstractTestNGSpringContextTests
      extended by org.apache.camel.testng.AbstractCamelTestNGSpringContextTests
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.testng.IHookable, org.testng.ITestNGListener

@TestExecutionListeners(listeners={org.apache.camel.test.spring.CamelSpringTestContextLoaderTestExecutionListener.class,org.springframework.test.context.support.DependencyInjectionTestExecutionListener.class,org.springframework.test.context.support.DirtiesContextTestExecutionListener.class,org.springframework.test.context.transaction.TransactionalTestExecutionListener.class,org.apache.camel.test.spring.DisableJmxTestExecutionListener.class,org.apache.camel.test.spring.StopWatchTestExecutionListener.class},
                        inheritListeners=false)
@ContextConfiguration(loader=AbstractCamelTestNGSpringContextTests.TestNGCamelSpringTestContextLoader.class)
public abstract class AbstractCamelTestNGSpringContextTests
extends org.springframework.test.context.testng.AbstractTestNGSpringContextTests
implements org.testng.IHookable

Bridges Camel testing capabilities from CamelSpringTestSupport into Spring Test driven classes. This class is based on AbstractTestNGSpringContextTests but must also declare a ContextConfiguration to enable the custom context loader needed to support some of the Camel testing capabilities.


Nested Class Summary
static class AbstractCamelTestNGSpringContextTests.TestNGCamelSpringTestContextLoader
           
 
Field Summary
 
Fields inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
applicationContext, logger
 
Constructor Summary
AbstractCamelTestNGSpringContextTests()
           
 
Method Summary
 
Methods inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
run, setApplicationContext, springTestContextAfterTestClass, springTestContextAfterTestMethod, springTestContextBeforeTestClass, springTestContextBeforeTestMethod, springTestContextPrepareTestInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.testng.IHookable
run
 

Constructor Detail

AbstractCamelTestNGSpringContextTests

public AbstractCamelTestNGSpringContextTests()


Apache Camel