Class StrictMockClock

java.lang.Object
com.atlassian.jira.util.StrictMockClock
All Implemented Interfaces:
com.atlassian.core.util.Clock

@Deprecated public class StrictMockClock extends Object implements com.atlassian.core.util.Clock
Deprecated.
Use Clock instead
A mock Clock that will return predefined dates and will throws exception, if called more times than the number of predefined values.
Since:
v4.3
  • Constructor Details

    • StrictMockClock

      public StrictMockClock(List<Long> times)
      Deprecated.
    • StrictMockClock

      public StrictMockClock(Long... times)
      Deprecated.
  • Method Details

    • times

      public List<Long> times()
      Deprecated.
    • first

      public long first()
      Deprecated.
    • last

      public long last()
      Deprecated.
    • getCurrentDate

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