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.sleep(long) . |
public void sleep(long millis) throws java.lang.InterruptedException
Sleeper
Thread.sleep(long)
.public final int getCount()
sleep(long)
was called.public final long getLastMillis()
Copyright © 2011-2018 Google. All Rights Reserved.