Package com.exonum.binding.testkit
Interface TimeProvider
- All Known Implementing Classes:
FakeTimeProvider
public interface TimeProvider
Time provider for service testing. Used as a time source by TestKit time service.
-
Method Summary
Modifier and Type Method Description java.time.ZonedDateTime
getTime()
Returns the current time of this time provider in UTC time zone.static TimeProvider
systemTime()
Returns a provider that uses the system time.
-
Method Details
-
getTime
java.time.ZonedDateTime getTime()Returns the current time of this time provider in UTC time zone. -
systemTime
Returns a provider that uses the system time.
-