public class CamelSpringJUnit4ClassRunner
extends org.springframework.test.context.junit4.SpringJUnit4ClassRunner
CamelSpringTestSupport to
Spring Test based test cases. This approach allows developers to implement tests
for their Spring based applications/routes using the typical Spring Test conventions
for test development.| Modifier and Type | Class and Description |
|---|---|
static class |
CamelSpringJUnit4ClassRunner.CamelTestContextManager
An implementation providing additional integration between Spring Test and Camel
testing features.
|
| Constructor and Description |
|---|
CamelSpringJUnit4ClassRunner(Class<?> clazz) |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.test.context.TestContextManager |
createTestContextManager(Class<?> clazz)
Returns the specialized manager instance that provides tight integration between Camel testing
features and Spring.
|
protected String |
getDefaultContextLoaderClassName(Class<?> clazz)
Returns the specialized loader for tight integration between Camel testing features
and the application context initialization.
|
createTest, getDescription, getExpectedException, getJUnitTimeout, getSpringTimeout, getTestContextManager, isTestMethodIgnored, methodBlock, possiblyExpectingExceptions, run, runChild, withAfterClasses, withAfters, withBeforeClasses, withBefores, withPotentialRepeat, withPotentialTimeoutcollectInitializationErrors, computeTestMethods, describeChild, getChildren, getTestRules, methodInvoker, rules, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructorpublic CamelSpringJUnit4ClassRunner(Class<?> clazz) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationErrorprotected org.springframework.test.context.TestContextManager createTestContextManager(Class<?> clazz)
createTestContextManager in class org.springframework.test.context.junit4.SpringJUnit4ClassRunnerCamelSpringJUnit4ClassRunner.CamelTestContextManager.protected String getDefaultContextLoaderClassName(Class<?> clazz)
getDefaultContextLoaderClassName in class org.springframework.test.context.junit4.SpringJUnit4ClassRunnerCamelSpringTestContextLoaderApache Camel