Spring Integration

org.springframework.integration.test.util
Class TestUtils

java.lang.Object
  extended by org.springframework.integration.test.util.TestUtils

public abstract class TestUtils
extends java.lang.Object

Author:
Mark Fisher, Iwein Fuld, Oleg Zhurakousky, Artem Bilan

Nested Class Summary
static class TestUtils.TestApplicationContext
           
 
Constructor Summary
TestUtils()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestUtils

public TestUtils()
Method Detail

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).

Spring Integration