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 DategetCurrentDate()voidsetCurrentDate(long dateMs)voidsetCurrentDate(Date date)voidsetCurrentDate(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:
 getCurrentDatein interfacecom.atlassian.core.util.Clock
 
 - 
 
 -