org.springframework.integration.test.util
Class TestUtils
java.lang.Object
org.springframework.integration.test.util.TestUtils
public abstract class TestUtils
- extends java.lang.Object
- Author:
- Mark Fisher, Iwein Fuld, Oleg Zhurakousky, Artem Bilan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestUtils
public TestUtils()
getPropertyValue
public static java.lang.Object getPropertyValue(java.lang.Object root,
java.lang.String propertyPath)
getPropertyValue
public static <T> T getPropertyValue(java.lang.Object root,
java.lang.String propertyPath,
java.lang.Class<T> type)
createTestApplicationContext
public static TestUtils.TestApplicationContext createTestApplicationContext()
createTaskScheduler
public static org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler createTaskScheduler(int poolSize)
handlerExpecting
public static MessageHandler handlerExpecting(org.hamcrest.Matcher<Message> messageMatcher)
locateComponentInHistory
public static java.util.Properties locateComponentInHistory(MessageHistory history,
java.lang.String componentName,
int startingIndex)
applySystemFileSeparator
public static java.lang.String applySystemFileSeparator(java.lang.String s)
- Update file path by replacing any '/' with the system's file separator.
- Parameters:
s
- The file path containing '/'.
- Returns:
- The updated file path (if necessary).