Interface MonthDayArbitrary

All Superinterfaces:
net.jqwik.api.Arbitrary<MonthDay>
All Known Implementing Classes:
DefaultMonthDayArbitrary

@API(status=EXPERIMENTAL, since="1.4.0") public interface MonthDayArbitrary extends net.jqwik.api.Arbitrary<MonthDay>
Fluent interface to configure the generation of month and day values.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.jqwik.api.Arbitrary

    net.jqwik.api.Arbitrary.ArbitraryFacade
  • Method Summary

    Modifier and Type
    Method
    Description
    Set the allowed lower min (included) bounder of generated month and day values.
    Set the allowed upper max (included) bounder of generated month and day values.
    Set the allowed lower min (included) and upper max (included) bounder of generated month and day values.
    dayOfMonthBetween(int min, int max)
    Set the allowed lower min (included) and upper max (included) bounder of generated day of month values.
    monthBetween(int min, int max)
    Set the allowed lower min (included) and upper max (included) bounder of generated month values.
    Set the allowed lower min (included) and upper max (included) bounder of generated month values.
    onlyMonths(Month... months)
    Set an array of allowed months.

    Methods inherited from interface net.jqwik.api.Arbitrary

    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
  • Method Details

    • between

      default MonthDayArbitrary between(MonthDay min, MonthDay max)
      Set the allowed lower min (included) and upper max (included) bounder of generated month and day values.
    • atTheEarliest

      MonthDayArbitrary atTheEarliest(MonthDay min)
      Set the allowed lower min (included) bounder of generated month and day values.
    • atTheLatest

      MonthDayArbitrary atTheLatest(MonthDay max)
      Set the allowed upper max (included) bounder of generated month and day values.
    • monthBetween

      MonthDayArbitrary monthBetween(Month min, Month max)
      Set the allowed lower min (included) and upper max (included) bounder of generated month values.
    • monthBetween

      default MonthDayArbitrary monthBetween(int min, int max)
      Set the allowed lower min (included) and upper max (included) bounder of generated month values. The int values can be between 1 and 12.
    • onlyMonths

      MonthDayArbitrary onlyMonths(Month... months)
      Set an array of allowed months.
    • dayOfMonthBetween

      MonthDayArbitrary dayOfMonthBetween(int min, int max)
      Set the allowed lower min (included) and upper max (included) bounder of generated day of month values. The int values can be between 1 and 31.