public class

StrictMockClock

extends Object
implements Clock
java.lang.Object
   ↳ 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.

Summary

Public Constructors
StrictMockClock(List<Long> times)
StrictMockClock(Long... times)
Public Methods
long first()
Date getCurrentDate()
long last()
List<Long> times()
[Expand]
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 ()