public class Sleeper extends Object
Thread.sleep(long) that allows mocking sleeps during testing.| Modifier and Type | Class and Description |
|---|---|
static class |
Sleeper.MockSleeper
A mock version of
Sleeper that just register calls to sleep but returns immediately. |
| Constructor and Description |
|---|
Sleeper() |
public void sleep(long millis)
throws InterruptedException
Thread.sleep(long).InterruptedException