Arbitrary.ArbitraryFacade
Modifier and Type | Method and Description |
---|---|
DurationArbitrary |
between(java.time.Duration min,
java.time.Duration max)
Set the allowed lower
min (included) and upper max (included) bounder of generated duration. |
DurationArbitrary |
ofPrecision(java.time.temporal.ChronoUnit ofPrecision)
Constrain the precision of generated 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
DurationArbitrary between(java.time.Duration min, java.time.Duration max)
min
(included) and upper max
(included) bounder of generated duration.
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.DurationArbitrary ofPrecision(java.time.temporal.ChronoUnit ofPrecision)