Package fr.gouv.vitam.common.time
Class LogicalClockRule
java.lang.Object
org.junit.rules.ExternalResource
fr.gouv.vitam.common.time.LogicalClockRule
- All Implemented Interfaces:
org.junit.rules.TestRule
public class LogicalClockRule
extends org.junit.rules.ExternalResource
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
after()
void
void
freezeTime
(LocalDateTime localDateTime) void
logicalSleep
(int amount, ChronoUnit unit) void
Methods inherited from class org.junit.rules.ExternalResource
apply, before
-
Constructor Details
-
LogicalClockRule
public LogicalClockRule()
-
-
Method Details
-
after
protected void after()- Overrides:
after
in classorg.junit.rules.ExternalResource
-
logicalSleep
-
freezeTime
public void freezeTime() -
freezeTime
-
resumeTime
public void resumeTime()
-