|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.jmx.CurrentTimeFacade
public class CurrentTimeFacade
Allows unit tests for system time dependant functions.
| Constructor Summary | |
|---|---|
CurrentTimeFacade()
|
|
| Method Summary | |
|---|---|
static java.util.Date |
getCurrentTime()
|
static void |
reset()
|
static void |
setCurrentTime(java.util.Date currentTime)
Note that you should NEVER call this outside of a unit test. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CurrentTimeFacade()
| Method Detail |
|---|
public static java.util.Date getCurrentTime()
public static void setCurrentTime(java.util.Date currentTime)
currentTime - to setpublic static void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||