Class SettableClock

  • All Implemented Interfaces:
    com.atlassian.core.util.Clock

    public class SettableClock
    extends Object
    implements com.atlassian.core.util.Clock
    A settable instance of clock useful for manipulating time in tests
    • Constructor Detail

      • SettableClock

        public SettableClock()
    • Method Detail

      • setCurrentDate

        public void setCurrentDate​(org.joda.time.DateTime dateTime)
      • setCurrentDate

        public void setCurrentDate​(Date date)
      • setCurrentDate

        public void setCurrentDate​(long dateMs)
      • getCurrentDate

        public Date getCurrentDate()
        Specified by:
        getCurrentDate in interface com.atlassian.core.util.Clock