com.atlassian.pageobjects.elements.mock.clock
Class StrictMockClock
java.lang.Object
com.atlassian.pageobjects.elements.mock.clock.StrictMockClock
- All Implemented Interfaces:
- Clock
public class StrictMockClock
- extends Object
- implements Clock
A mock Clock that will return predefined dates and will
throw exception, if called more times than the number of predefined values.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StrictMockClock
public StrictMockClock(List<Long> times)
StrictMockClock
public StrictMockClock(Long... times)
times
public List<Long> times()
first
public long first()
last
public long last()
currentTime
public long currentTime()
- Specified by:
currentTime in interface Clock
Copyright © 2014 Atlassian. All rights reserved.