public abstract class TestUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestUtils.TestApplicationContext |
Constructor and Description |
---|
TestUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
applySystemFileSeparator(String s)
Update file path by replacing any '/' with the system's file separator.
|
static ThreadPoolTaskScheduler |
createTaskScheduler(int poolSize) |
static TestUtils.TestApplicationContext |
createTestApplicationContext() |
static Object |
getPropertyValue(Object root,
String propertyPath) |
static <T> T |
getPropertyValue(Object root,
String propertyPath,
Class<T> type) |
static MessageHandler |
handlerExpecting(org.hamcrest.Matcher<Message> messageMatcher) |
static Properties |
locateComponentInHistory(MessageHistory history,
String componentName,
int startingIndex) |
public static <T> T getPropertyValue(Object root, String propertyPath, Class<T> type)
public static TestUtils.TestApplicationContext createTestApplicationContext()
public static ThreadPoolTaskScheduler createTaskScheduler(int poolSize)
public static MessageHandler handlerExpecting(org.hamcrest.Matcher<Message> messageMatcher)
public static Properties locateComponentInHistory(MessageHistory history, String componentName, int startingIndex)
history
- a message historycomponentName
- the name of a component to scan forstartingIndex
- the index to start scanning