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 SummaryModifier and Type Method Description java.time.ZonedDateTimegetTime()Returns the current time of this time provider in UTC time zone.static TimeProvidersystemTime()Returns a provider that uses the system time.
- 
Method Details- 
getTimejava.time.ZonedDateTime getTime()Returns the current time of this time provider in UTC time zone.
- 
systemTimeReturns a provider that uses the system time.
 
-