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


Nested Class Summary
static class TestUtils.TestApplicationContext
           
 
Constructor Summary
TestUtils()
           
 
Method Summary
static 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 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)