public class MonotonicFakeClock extends Object implements MonotonicClock
MonotonicClock
for testing code that
uses Clock.Constructor and Description |
---|
MonotonicFakeClock() |
Modifier and Type | Method and Description |
---|---|
ProposedTimestamp |
propose() |
void |
tick(long add,
TimeUnit unit)
Advance the time returned by future calls to
propose() . |
public void tick(long add, TimeUnit unit)
propose()
.add
- amount of time to add; must be > 0
.unit
- unit of add
.public ProposedTimestamp propose()
propose
in interface MonotonicClock
Copyright © 2019 Eclipse JGit Project. All rights reserved.