public class


extends Object
implements Clock
   ↳ com.atlassian.jira.util.StrictMockClock

Class Overview

A mock com.atlassian.core.util.Clock that will return predefined dates and will throws exception, if called more times than the number of predefined values.


Public Constructors
StrictMockClock(List<Long> times)
StrictMockClock(Long... times)
Public Methods
long first()
Date getCurrentDate()
long last()
List<Long> times()
Inherited Methods
From class java.lang.Object
From interface com.atlassian.core.util.Clock

Public Constructors

public StrictMockClock (List<Long> times)

public StrictMockClock (Long... times)

Public Methods

public long first ()

public Date getCurrentDate ()

public long last ()

public List<Long> times ()