CamelSpringTestSupport or
CamelSpringJUnit4ClassRunner.@Deprecated public abstract class CamelSpringTestSupport extends org.apache.camel.test.CamelTestSupport
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.support.AbstractApplicationContext |
applicationContext
Deprecated.
|
| Constructor and Description |
|---|
CamelSpringTestSupport()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.springframework.context.support.AbstractApplicationContext |
createApplicationContext()
Deprecated.
|
protected org.apache.camel.CamelContext |
createCamelContext()
Deprecated.
|
protected Class<?> |
excludeRoute()
Deprecated.
Template method used to exclude a
Route from the test camel context |
protected Class<?>[] |
excludeRoutes()
Deprecated.
Template method used to exclude
Route from the test time context
route scanning |
<T> T |
getMandatoryBean(Class<T> type,
String name)
Deprecated.
Looks up the mandatory spring bean of the given name and type, failing if
it is not present or the correct type
|
protected org.springframework.context.ApplicationContext |
getRouteExcludingApplicationContext()
Deprecated.
Create a parent context that initializes a
PackageScanClassResolver to exclude a set of given classes from
being resolved. |
protected void |
postProcessTest()
Deprecated.
|
protected void |
setUp()
Deprecated.
|
protected void |
tearDown()
Deprecated.
|
assertExpression, assertMockEndpointsSatisfied, assertMockEndpointsSatisfied, assertPredicate, assertResolveLanguage, assertValidContext, createExchangeWithBody, createJndiContext, createRegistry, createRouteBuilder, createRouteBuilders, debugAfter, debugBefore, disableJMX, enableJMX, getCamelContextService, getMandatoryEndpoint, getMandatoryEndpoint, getMockEndpoint, getShutdownTimeout, isLazyLoadingTypeConverter, isMockEndpoints, isUseAdviceWith, isUseDebugger, isUseRouteBuilder, resetMocks, resolveMandatoryEndpoint, resolveMandatoryEndpoint, sendBodies, sendBody, sendBody, setCamelContextService, setUseRouteBuilder, startCamelContext, stopCamelContext, useJmxassertCollectionSize, assertCollectionSize, assertDirectoryEquals, assertDirectoryEquals, assertEndpointUri, assertExpression, assertFileExists, assertFileNotExists, assertInMessageBodyEquals, assertInMessageHeader, assertIsInstanceOf, assertListSize, assertListSize, assertMessageHeader, assertOneElement, assertOutMessageBodyEquals, assertOutMessageHeader, assertPredicate, assertPredicateDoesNotMatch, assertPredicateMatches, assertStringContains, body, bodyAs, canRunOnThisPlatform, createDirectory, createExchangeWithBody, deleteDirectory, deleteDirectory, faultBody, faultBodyAs, getRouteList, getTestMethodName, header, isJava15, isJavaVendor, isPlatform, outBody, outBodyAs, property, resolveMandatoryEndpoint, resolveMandatoryEndpoint, runBare, systemProperty, systemProperty, unwrap, unwrapChannelcountTestCases, createResult, getName, run, run, runTest, setName, toStringassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, formatprotected org.springframework.context.support.AbstractApplicationContext applicationContext
protected abstract org.springframework.context.support.AbstractApplicationContext createApplicationContext()
protected void setUp()
throws Exception
setUp in class org.apache.camel.test.CamelTestSupportExceptionprotected void tearDown()
throws Exception
tearDown in class org.apache.camel.test.CamelTestSupportExceptionprotected void postProcessTest()
throws Exception
postProcessTest in class org.apache.camel.test.CamelTestSupportExceptionprotected org.springframework.context.ApplicationContext getRouteExcludingApplicationContext()
PackageScanClassResolver to exclude a set of given classes from
being resolved. Typically this is used at test time to exclude certain routes,
which might otherwise be just noisy, from being discovered and initialized.
To use this filtering mechanism it is necessary to provide the
ApplicationContext returned from here as the parent context to
your test context e.g.
protected AbstractXmlApplicationContext createApplicationContext() {
return new ClassPathXmlApplicationContext(new String[] {"test-context.xml"}, getRouteExcludingApplicationContext());
}
This will, in turn, call the template methods excludedRoutes
and excludedRoute to determine the classes to be excluded from scanning.ApplicationContext configured
to exclude certain classes from package scanningprotected Class<?>[] excludeRoutes()
Route from the test time context
route scanningprotected Class<?> excludeRoute()
Route from the test camel contextpublic <T> T getMandatoryBean(Class<T> type, String name)
Apache CAMEL