Package org.apache.camel.test.spring
Class CamelSpringTestHelper
java.lang.Object
org.apache.camel.test.spring.CamelSpringTestHelper
Deprecated.
Helper that provides state information across the levels of Spring Test that do not expose the necessary
context/state for integration of Camel testing features into Spring test. Also provides utility methods.
Note that this class makes use of
ThreadLocal
s to maintain some state. It is imperative that the state
setters and getters are accessed within the scope of a single thread in order for this class to work right.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
doToSpringCamelContexts
(org.springframework.context.ApplicationContext context, CamelSpringTestHelper.DoToSpringCamelContextsStrategy strategy) Deprecated.Executesstrategy
against allSpringCamelContext
s found in the Spring context.static Collection<Method>
getAllMethods
(Class<?> clazz) Deprecated.Returns all methods defined inclazz
and its superclasses/interfaces.static String
Deprecated.static String
Deprecated.static Class<?>
Deprecated.static Method
Deprecated.static void
setOriginalExcludeRoutesValue
(String originalValue) Deprecated.static void
setOriginalJmxDisabledValue
(String originalValue) Deprecated.static void
setTestClass
(Class<?> testClass) Deprecated.static void
setTestContext
(org.springframework.test.context.TestContext context) Deprecated.
-
Method Details
-
getOriginalJmxDisabled
Deprecated. -
setOriginalJmxDisabledValue
Deprecated. -
getOriginalExcludeRoutes
Deprecated. -
setOriginalExcludeRoutesValue
Deprecated. -
getTestClass
Deprecated. -
setTestClass
Deprecated. -
getTestMethod
Deprecated. -
setTestContext
public static void setTestContext(org.springframework.test.context.TestContext context) Deprecated. -
getAllMethods
Deprecated.Returns all methods defined inclazz
and its superclasses/interfaces. -
doToSpringCamelContexts
public static void doToSpringCamelContexts(org.springframework.context.ApplicationContext context, CamelSpringTestHelper.DoToSpringCamelContextsStrategy strategy) throws Exception Deprecated.Executesstrategy
against allSpringCamelContext
s found in the Spring context. This method reduces the amount of repeated find and loop code throughout this class.- Parameters:
context
- the Spring context to searchstrategy
- the strategy to execute against the foundSpringCamelContext
s- Throws:
Exception
- if there is an error executing any of the strategies
-