Package com.atlassian.confluence.jmx
Class CurrentTimeFacade
java.lang.Object
com.atlassian.confluence.jmx.CurrentTimeFacade
Allows unit tests for system time dependant functions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Date
static void
reset()
static void
setCurrentTime
(Date currentTime) Note that you should NEVER call this outside of a unit test.
-
Constructor Details
-
CurrentTimeFacade
public CurrentTimeFacade()
-
-
Method Details
-
getCurrentTime
-
setCurrentTime
Note that you should NEVER call this outside of a unit test.- Parameters:
currentTime
- to set
-
reset
public static void reset()
-