Package org.apache.camel.test.spring
Class CamelSpringTestHelper
- java.lang.Object
-
- org.apache.camel.test.spring.CamelSpringTestHelper
-
@Deprecated public final class CamelSpringTestHelper extends Object
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 ofThreadLocals 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 Classes Modifier and Type Class Description static interfaceCamelSpringTestHelper.DoToSpringCamelContextsStrategyDeprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voiddoToSpringCamelContexts(org.springframework.context.ApplicationContext context, CamelSpringTestHelper.DoToSpringCamelContextsStrategy strategy)Deprecated.Executesstrategyagainst allSpringCamelContexts found in the Spring context.static Collection<Method>getAllMethods(Class<?> clazz)Deprecated.Returns all methods defined inclazzand its superclasses/interfaces.static StringgetOriginalExcludeRoutes()Deprecated.static StringgetOriginalJmxDisabled()Deprecated.static Class<?>getTestClass()Deprecated.static MethodgetTestMethod()Deprecated.static voidsetOriginalExcludeRoutesValue(String originalValue)Deprecated.static voidsetOriginalJmxDisabledValue(String originalValue)Deprecated.static voidsetTestClass(Class<?> testClass)Deprecated.static voidsetTestContext(org.springframework.test.context.TestContext context)Deprecated.
-
-
-
Method Detail
-
getOriginalJmxDisabled
public static String getOriginalJmxDisabled()
Deprecated.
-
setOriginalJmxDisabledValue
public static void setOriginalJmxDisabledValue(String originalValue)
Deprecated.
-
getOriginalExcludeRoutes
public static String getOriginalExcludeRoutes()
Deprecated.
-
setOriginalExcludeRoutesValue
public static void setOriginalExcludeRoutesValue(String originalValue)
Deprecated.
-
getTestClass
public static Class<?> getTestClass()
Deprecated.
-
setTestClass
public static void setTestClass(Class<?> testClass)
Deprecated.
-
getTestMethod
public static Method getTestMethod()
Deprecated.
-
setTestContext
public static void setTestContext(org.springframework.test.context.TestContext context)
Deprecated.
-
getAllMethods
public static Collection<Method> getAllMethods(Class<?> clazz)
Deprecated.Returns all methods defined inclazzand its superclasses/interfaces.
-
doToSpringCamelContexts
public static void doToSpringCamelContexts(org.springframework.context.ApplicationContext context, CamelSpringTestHelper.DoToSpringCamelContextsStrategy strategy) throws ExceptionDeprecated.Executesstrategyagainst allSpringCamelContexts 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 foundSpringCamelContexts- Throws:
Exception- if there is an error executing any of the strategies
-
-