public class TestUtils
extends java.lang.Object
Constructor and Description |
---|
TestUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
blockTillClockAdvances()
Blocks until the System clock advances at least 1 millisecond.
|
static void |
sleep(long time)
Since sleeps are sometimes necessary, this makes an easy way to ignore InterruptedException's.
|
public static void sleep(long time)
time
- time in milliseconds to make the thread to sleeppublic static void blockTillClockAdvances()
Clock
class's representation of time has advanced.