net.thucydides.core.pages
Class InternalSystemClock
java.lang.Object
net.thucydides.core.pages.InternalSystemClock
- All Implemented Interfaces:
- SystemClock
public class InternalSystemClock
- extends Object
- implements SystemClock
Object that encapsulates system clock operations.
|
Method Summary |
org.joda.time.DateTime |
getCurrentTime()
Find the current system time. |
void |
pauseFor(long timeInMilliseconds)
Pause execution for the requested delay. |
protected void |
sleepFor(long timeInMilliseconds)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InternalSystemClock
public InternalSystemClock()
pauseFor
public void pauseFor(long timeInMilliseconds)
- Pause execution for the requested delay.
Throws a runtime exception if something goes wrong.
- Specified by:
pauseFor in interface SystemClock
sleepFor
protected void sleepFor(long timeInMilliseconds)
throws InterruptedException
- Throws:
InterruptedException
getCurrentTime
public org.joda.time.DateTime getCurrentTime()
- Find the current system time.
- Specified by:
getCurrentTime in interface SystemClock
Copyright © 2011-2012 Wakaleo Consulting. All Rights Reserved.