@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
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.Modifier and Type | Class and Description |
---|---|
static class |
AbstractCamelTestNGSpringContextTests.TestNGCamelSpringTestContextLoader |
Constructor and Description |
---|
AbstractCamelTestNGSpringContextTests() |
run, setApplicationContext, springTestContextAfterTestClass, springTestContextAfterTestMethod, springTestContextBeforeTestClass, springTestContextBeforeTestMethod, springTestContextPrepareTestInstance
Apache Camel