org.apache.qpid.junit.extensions.util
Class TestUtils
java.lang.Object
org.apache.qpid.junit.extensions.util.TestUtils
public class TestUtils
- extends Object
Provides commonly used functions that aid testing.
CRC Card
Responsibilities | Collaborations
|
---|
Provide a short pause.
|
Method Summary |
static void |
pause(long millis)
Injects a short pause. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestUtils
public TestUtils()
pause
public static void pause(long millis)
- Injects a short pause. The pause may not complete its full length, if the thread is interrupted when waiting.
In most cases, this will not happen and this method is a vry adequate pause implementation, without the
need to handle interrupted exceptions.
- Parameters:
millis
- The length of the pause in milliseconds.
Licensed to the Apache Software Foundation