Class TimeProvider

  • All Implemented Interfaces:

    
    public class TimeProvider
    
                        

    Class which provides the current time. This is useful to pass in to classes so that it's easier to mock out the result in unit tests.

    Author:

    bbaldino

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      TimeProvider()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      long currentTimeMillis()
      • Methods inherited from class java.lang.Object

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

      • TimeProvider

        TimeProvider()