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

  Constructors
  Constructor
  Description
  `LogicalClockRule()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected void`
  `after()`
  `void`
  `freezeTime()`
  `void`
  `freezeTime(LocalDateTime localDateTime)`
  `void`
  `logicalSleep(int amount, ChronoUnit unit)`
  `void`
  `resumeTime()`

  ### Methods inherited from class org.junit.rules.ExternalResource

  `apply, before`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### LogicalClockRule

    public LogicalClockRule()

- ## Method Details

  - ### after

    protected void after()
    Overrides:
      `after` in class `org.junit.rules.ExternalResource`

  - ### logicalSleep

    public void logicalSleep(int amount, ChronoUnit unit)

  - ### freezeTime

    public void freezeTime()

  - ### freezeTime

    public void freezeTime(LocalDateTime localDateTime)

  - ### resumeTime

    public void resumeTime()