Package io.micronaut.data.tck.tests
Class MockedDateTimeProvider
java.lang.Object
io.micronaut.data.tck.tests.MockedDateTimeProvider
- All Implemented Interfaces:
DateTimeProvider<OffsetDateTime>
@Singleton
@Replaces(DateTimeProvider.class)
public class MockedDateTimeProvider
extends Object
implements DateTimeProvider<OffsetDateTime>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNow()Returns the time to be used for the timestamp.voidsetValue(OffsetDateTime value)
-
Constructor Details
-
MockedDateTimeProvider
public MockedDateTimeProvider()
-
-
Method Details
-
setValue
-
getNow
Description copied from interface:DateTimeProviderReturns the time to be used for the timestamp.- Specified by:
getNowin interfaceDateTimeProvider<OffsetDateTime>- Returns:
- The resulting time.
-