Class MockTimeProvider

java.lang.Object
it.tidalwave.util.test.MockTimeProvider
All Implemented Interfaces:
TimeProvider, Supplier<Instant>

public class MockTimeProvider extends Object implements TimeProvider
A mock implementation of TimeProvider which returns a fixed value that can be set (the zero epoch instant by default).
Since:
1.39
Author:
Fabrizio Giudici
See Also:
  • Constructor Details

    • MockTimeProvider

      public MockTimeProvider()
  • Method Details