java.lang.Object
de.cuioss.test.generator.impl.ZonedDateTimeGenerator
- All Implemented Interfaces:
TypedGenerator<ZonedDateTime>
Provide any value for ZonedDateTime
- Author:
- Eugen Fischer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ZonedDateTimeany()getType()static ZonedDateTimestatic ZonedDateTimenext()Generates the next instance.static ZonedDateTimenow()static ZonedDateTimestatic ZonedDateTimestatic ZonedDateTimestatic ZonedDateTimestatic ZonedDateTimestatic ZonedDateTime
-
Constructor Details
-
ZonedDateTimeGenerator
public ZonedDateTimeGenerator()
-
-
Method Details
-
next
Description copied from interface:TypedGeneratorGenerates the next instance.- Specified by:
nextin interfaceTypedGenerator<ZonedDateTime>- Returns:
- a newly created instance
-
getType
- Specified by:
getTypein interfaceTypedGenerator<ZonedDateTime>- Returns:
- class information; which type this generator is responsible for.
-
any
- Returns:
- an arbitrary ZonedDateTime
-
now
- Returns:
- value of ZonedDateTime for now
-
someMinutesAgo
- Returns:
- value of ZonedDateTime one hour ago
-
someHoursAgo
- Returns:
- value of ZonedDateTime one hour ago
-
someDaysAgo
- Returns:
- value of ZonedDateTime one day ago
-
someWeeksAgo
- Returns:
- value of ZonedDateTime one week ago
-
someMonthsAgo
- Returns:
- value of ZonedDateTime one month ago
-
someYearsAgo
- Returns:
- value of ZonedDateTime one year ago
-
lastTenYearsAgo
- Returns:
- value of ZonedDateTime with date somewhere 10 years ago
-
lastMonthAgo
- Returns:
- value of ZonedDateTime with date somewhere lastMonth
-