public final class CamelSpringTestHelper
extends java.lang.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 |
Modifier and Type | Method and Description |
---|---|
static void |
doToSpringCamelContexts(org.springframework.context.ApplicationContext context,
CamelSpringTestHelper.DoToSpringCamelContextsStrategy strategy)
Executes
strategy against all SpringCamelContext s found in the Spring context. |
static java.util.Collection<java.lang.reflect.Method> |
getAllMethods(java.lang.Class<?> clazz)
Returns all methods defined in
clazz and its superclasses/interfaces. |
static java.lang.String |
getOriginalJmxDisabled() |
static java.lang.Class<?> |
getTestClass() |
static void |
setOriginalJmxDisabledValue(java.lang.String originalValue) |
static void |
setTestClass(java.lang.Class<?> testClass) |
public static java.lang.String getOriginalJmxDisabled()
public static void setOriginalJmxDisabledValue(java.lang.String originalValue)
public static java.lang.Class<?> getTestClass()
public static void setTestClass(java.lang.Class<?> testClass)
public static java.util.Collection<java.lang.reflect.Method> getAllMethods(java.lang.Class<?> clazz)
clazz
and its superclasses/interfaces.public static void doToSpringCamelContexts(org.springframework.context.ApplicationContext context, CamelSpringTestHelper.DoToSpringCamelContextsStrategy strategy) throws java.lang.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
sjava.lang.Exception
- if there is an error executing any of the strategiesCopyright © 2007-2014 Red Hat, Inc.. All Rights Reserved.