Class CurrentTimeFacade


  • public class CurrentTimeFacade
    extends Object
    Allows unit tests for system time dependant functions.
    • 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()