Interface DurationArbitrary

  • All Superinterfaces:
    Arbitrary<java.time.Duration>

    @API(status=EXPERIMENTAL,
         since="1.5.1")
    public interface DurationArbitrary
    extends Arbitrary<java.time.Duration>
    Fluent interface to configure the generation of duration values.
    • Method Detail

      • between

        DurationArbitrary between​(java.time.Duration min,
                                  java.time.Duration max)
        Set the allowed lower 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.
      • ofPrecision

        DurationArbitrary ofPrecision​(java.time.temporal.ChronoUnit ofPrecision)
        Constrain the precision of generated values. Default value: Seconds. 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.