Class SettableClock
- java.lang.Object
-
- com.atlassian.confluence.it.system.SettableClock
-
- All Implemented Interfaces:
com.atlassian.core.util.Clock
public class SettableClock extends Object implements com.atlassian.core.util.Clock
A settable instance of clock useful for manipulating time in tests
-
-
Constructor Summary
Constructors Constructor Description SettableClock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getCurrentDate()
void
setCurrentDate(long dateMs)
void
setCurrentDate(Date date)
void
setCurrentDate(org.joda.time.DateTime dateTime)
-
-
-
Method Detail
-
setCurrentDate
public void setCurrentDate(org.joda.time.DateTime dateTime)
-
setCurrentDate
public void setCurrentDate(Date date)
-
setCurrentDate
public void setCurrentDate(long dateMs)
-
getCurrentDate
public Date getCurrentDate()
- Specified by:
getCurrentDate
in interfacecom.atlassian.core.util.Clock
-
-