Class LogicalClockRule

  • All Implemented Interfaces:
    org.junit.rules.TestRule

    public class LogicalClockRule
    extends org.junit.rules.ExternalResource
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void after()  
      void freezeTime()  
      void logicalSleep​(int amount, java.time.temporal.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 Detail

      • LogicalClockRule

        public LogicalClockRule()
    • Method Detail

      • after

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

        public void logicalSleep​(int amount,
                                 java.time.temporal.ChronoUnit unit)
      • freezeTime

        public void freezeTime()
      • resumeTime

        public void resumeTime()