|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.integration.ip.util.TestingUtilities
public class TestingUtilities
Convenience class providing methods for testing IP components. Provided in the main branch so that it is available for use in user test code, samples etc.
Constructor Summary | |
---|---|
TestingUtilities()
|
Method Summary | |
---|---|
static void |
waitListening(AbstractServerConnectionFactory serverConnectionFactory,
java.lang.Long delay)
Wait for a server connection factory to actually start listening before starting a test. |
static void |
waitStopListening(AbstractServerConnectionFactory serverConnectionFactory,
java.lang.Long delay)
Wait for a server connection factory to stop listening. |
static void |
waitUntilFactoryHasThisNumberOfConnections(AbstractConnectionFactory factory,
int n)
Wait for up to 10 seconds for the connection factory to have the specified number of connections. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestingUtilities()
Method Detail |
---|
public static void waitListening(AbstractServerConnectionFactory serverConnectionFactory, java.lang.Long delay) throws java.lang.IllegalStateException
serverConnectionFactory
- The server connection factory.delay
- How long to wait in milliseconds; default 10000 (10 seconds) if null.
java.lang.IllegalStateException
public static void waitStopListening(AbstractServerConnectionFactory serverConnectionFactory, java.lang.Long delay) throws java.lang.IllegalStateException
serverConnectionFactory
- The server connection factory.delay
- How long to wait in milliseconds; default 10000 (10 seconds) if null.
java.lang.IllegalStateException
public static void waitUntilFactoryHasThisNumberOfConnections(AbstractConnectionFactory factory, int n) throws java.lang.Exception
factory
- The factory.n
- The required number of connections.
java.lang.Exception
- IllegalStateException if the count does not match.
|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |