@Deprecated public final class CamelSpringTestHelper extends Object
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.Modifier and Type | Class and Description |
---|---|
static interface |
CamelSpringTestHelper.DoToSpringCamelContextsStrategy
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
doToSpringCamelContexts(org.springframework.context.ApplicationContext context,
CamelSpringTestHelper.DoToSpringCamelContextsStrategy strategy)
Deprecated.
Executes
strategy against all SpringCamelContext s found in the Spring context. |
static Collection<Method> |
getAllMethods(Class<?> clazz)
Deprecated.
Returns all methods defined in
clazz and its superclasses/interfaces. |
static String |
getOriginalExcludeRoutes()
Deprecated.
|
static String |
getOriginalJmxDisabled()
Deprecated.
|
static Class<?> |
getTestClass()
Deprecated.
|
static Method |
getTestMethod()
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.
|
public static String getOriginalJmxDisabled()
public static void setOriginalJmxDisabledValue(String originalValue)
public static String getOriginalExcludeRoutes()
public static void setOriginalExcludeRoutesValue(String originalValue)
public static Class<?> getTestClass()
public static void setTestClass(Class<?> testClass)
public static Method getTestMethod()
public static void setTestContext(org.springframework.test.context.TestContext context)
public static Collection<Method> getAllMethods(Class<?> clazz)
clazz
and its superclasses/interfaces.public static void doToSpringCamelContexts(org.springframework.context.ApplicationContext context, CamelSpringTestHelper.DoToSpringCamelContextsStrategy strategy) throws Exception
strategy
against all SpringCamelContext
s found in the Spring context. This method
reduces the amount of repeated find and loop code throughout this class.context
- the Spring context to searchstrategy
- the strategy to execute against the found SpringCamelContext
sException
- if there is an error executing any of the strategiesApache Camel