java.lang.Object
org.eclipse.jgit.junit.time.MonotonicFakeClock
- All Implemented Interfaces:
org.eclipse.jgit.util.time.MonotonicClock
Fake
MonotonicClock for testing code that
uses Clock.- Since:
- 4.6
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MonotonicFakeClock
public MonotonicFakeClock()
-
-
Method Details
-
tick
Advance the time returned by future calls topropose().- Parameters:
add- amount of time to add; must be> 0.unit- unit ofadd.
-
propose
public org.eclipse.jgit.util.time.ProposedTimestamp propose()- Specified by:
proposein interfaceorg.eclipse.jgit.util.time.MonotonicClock
-