| Constructor and Description |
|---|
MockSleeper()
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCount()
Returns the number of times
sleep(long) was called.
|
long |
getLastMillis()
|
void |
sleep(long millis)
Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds as specified in
Thread.
|
public void sleep(long millis)
throws InterruptedException
Sleeper
Thread.sleep(long) .
sleep in interface
Sleeper
millis - length of time to sleep in milliseconds
InterruptedException - if any thread has interrupted the current thread
public final int getCount()
sleep(long) was called.
public final long getLastMillis()