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

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


Constructor Summary
ConstantClock(long currentDate)
           
 
Method Summary
 long currentTime()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstantClock

public ConstantClock(long currentDate)
Method Detail

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.