Arbitrary.ArbitraryFacade
Modifier and Type | Method and Description |
---|---|
LocalTimeArbitrary |
atTheEarliest(java.time.LocalTime min)
Set the allowed lower
min (included) bounder of generated local time values. |
LocalTimeArbitrary |
atTheLatest(java.time.LocalTime max)
Set the allowed upper
max (included) bounder of generated local time values. |
default LocalTimeArbitrary |
between(java.time.LocalTime min,
java.time.LocalTime max)
Set the allowed lower
min (included) and upper max (included) bounder of generated local time values. |
LocalTimeArbitrary |
hourBetween(int min,
int max)
Set the allowed lower
min (included) and upper max (included) bounder of generated hour values. |
LocalTimeArbitrary |
minuteBetween(int min,
int max)
Set the allowed lower
min (included) and upper max (included) bounder of generated minute values. |
LocalTimeArbitrary |
ofPrecision(java.time.temporal.ChronoUnit ofPrecision)
Constrain the precision of generated values.
|
LocalTimeArbitrary |
secondBetween(int min,
int max)
Set the allowed lower
min (included) and upper max (included) bounder of generated second values. |
allValues, array, asGeneric, collect, dontShrink, edgeCases, edgeCases, edgeCases, exhaustive, exhaustive, filter, filter, fixGenSize, flatMap, forEachValue, generator, generator, generatorWithEmbeddedEdgeCases, ignoreException, ignoreException, ignoreExceptions, ignoreExceptions, injectDuplicates, injectNull, isGeneratorMemoizable, iterator, list, map, optional, optional, sample, sampleStream, set, stream, tuple1, tuple2, tuple3, tuple4, tuple5, withoutEdgeCases
default LocalTimeArbitrary between(java.time.LocalTime min, java.time.LocalTime max)
min
(included) and upper max
(included) bounder of generated local time values.
If you don't explicitly set the precision and use min/max values with precision milliseconds/microseconds/nanoseconds, the precision of your min/max value is implicitly set.LocalTimeArbitrary atTheEarliest(java.time.LocalTime min)
min
(included) bounder of generated local time values.
If you don't explicitly set the precision and use min/max values with precision milliseconds/microseconds/nanoseconds, the precision of your min/max value is implicitly set.LocalTimeArbitrary atTheLatest(java.time.LocalTime max)
max
(included) bounder of generated local time values.
If you don't explicitly set the precision and use min/max values with precision milliseconds/microseconds/nanoseconds, the precision of your min/max value is implicitly set.LocalTimeArbitrary hourBetween(int min, int max)
min
(included) and upper max
(included) bounder of generated hour values.
The hours can be between 0
and 23
.LocalTimeArbitrary minuteBetween(int min, int max)
min
(included) and upper max
(included) bounder of generated minute values.
The minutes can be between 0
and 59
.LocalTimeArbitrary secondBetween(int min, int max)
min
(included) and upper max
(included) bounder of generated second values.
The minutes can be between 0
and 59
.LocalTimeArbitrary ofPrecision(java.time.temporal.ChronoUnit ofPrecision)