com.atlassian.pageobjects.elements.mock.clock
Class ConstantClock
java.lang.Object
com.atlassian.pageobjects.elements.mock.clock.ConstantClock
- All Implemented Interfaces:
- Clock
public final class ConstantClock
- extends Object
- implements Clock
Simple clock that returns a constant value given during construction. Useful for testing date related functions.
ConstantClock
public ConstantClock(long currentDate)
currentTime
public long currentTime()
- Specified by:
currentTime in interface Clock
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2014 Atlassian. All rights reserved.