com.atlassian.pageobjects.elements.mock.clock
Class StrictMockClock

java.lang.Object
  extended by 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.


Constructor Summary
StrictMockClock(List<Long> times)
           
StrictMockClock(Long... times)
           
 
Method Summary
 long currentTime()
           
 long first()
           
 long last()
           
 List<Long> times()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrictMockClock

public StrictMockClock(List<Long> times)

StrictMockClock

public StrictMockClock(Long... times)
Method Detail

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.