Package com.github.mike10004.xvfbmanager
Interface Sleeper
-
- All Known Implementing Classes:
Sleeper.DefaultSleeper
public interface SleeperInterface for classes that sleep. Thedefault implementationcallsThread.sleep(long). Unit tests may mock this class or re-implement it to suit their needs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSleeper.DefaultSleeperDefault sleeper implementation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsleep(long millis)Sleep for the given number of milliseconds.
-
-
-
Method Detail
-
sleep
void sleep(long millis) throws InterruptedExceptionSleep for the given number of milliseconds.- Parameters:
millis- the sleep duration- Throws:
InterruptedException- if sleep is interrupted
-
-