Class ClockService


  • public class ClockService
    extends Object
    Wraps the Clock such that we can change the Clock for testing purposes.
    • Method Detail

      • setClock

        public void setClock​(Clock clock)
        Change the clock for testing purposes.
      • nowMillis

        public long nowMillis()
        Return the Clock current timestamp in millis.