com.atlassian.confluence.jmx
Class CurrentTimeFacade

java.lang.Object
  extended by com.atlassian.confluence.jmx.CurrentTimeFacade

public class CurrentTimeFacade
extends Object

Allows unit tests for system time dependant functions.


Constructor Summary
CurrentTimeFacade()
           
 
Method Summary
static Date getCurrentTime()
           
static void reset()
           
static void setCurrentTime(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

CurrentTimeFacade

public CurrentTimeFacade()
Method Detail

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–2015 Atlassian. All rights reserved.