com.atlassian.confluence.jmx
Class CurrentTimeFacade
java.lang.Object
com.atlassian.confluence.jmx.CurrentTimeFacade
public class CurrentTimeFacade
- extends Object
Allows unit tests for system time dependant functions.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CurrentTimeFacade
public CurrentTimeFacade()
getCurrentTime
public static Date getCurrentTime()
setCurrentTime
public static void setCurrentTime(Date currentTime)
- Note that you should NEVER call this outside of a unit test.
- Parameters:
currentTime
- to set
reset
public static void reset()
Copyright © 2003-2011 Atlassian. All Rights Reserved.