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