Class MockTimer

  • All Implemented Interfaces:
    Timer

    public class MockTimer
    extends java.lang.Object
    implements Timer
    Represents a MockTimer
    Author:
    brozow
    • Constructor Summary

      Constructors 
      Constructor Description
      MockTimer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getCurrentTime()
      getCurrentTime
      void setCurrentTime​(long currentTime)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MockTimer

        public MockTimer()
    • Method Detail

      • getCurrentTime

        public long getCurrentTime()
        Description copied from interface: Timer

        getCurrentTime

        Specified by:
        getCurrentTime in interface Timer
        Returns:
        a long.
      • setCurrentTime

        public void setCurrentTime​(long currentTime)