public class

CurrentTimeFacade

extends Object
java.lang.Object
   ↳ com.atlassian.confluence.jmx.CurrentTimeFacade

Class Overview

Allows unit tests for system time dependant functions.

Summary

Public Constructors
CurrentTimeFacade()
Public Methods
static Date getCurrentTime()
static void reset()
static void setCurrentTime(Date currentTime)
Note that you should NEVER call this outside of a unit test.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CurrentTimeFacade ()

Public Methods

public static Date getCurrentTime ()

public static void reset ()

public static void setCurrentTime (Date currentTime)

Note that you should NEVER call this outside of a unit test.

Parameters
currentTime to set