Skip to content

Release 1.2.1

Compare
Choose a tag to compare
@jlink jlink released this 24 Oct 12:17

New and Enhanced Features

  • New configuration parameter defaultGeneration for jqwik.properties file
  • Added CharacterArbitrary.with(CharSequence allowedChars)
  • Added StringArbitrary.withChars(CharSequence allowedChars)
  • Arbitraries of List, Set, Stream und arrays are now of type StreamableArray
  • Introduced StreamableArray.reduce()
  • HashMap can now be generated by default

Breaking Changes

  • Arbitrary.exhaustive() must no longer be overridden in implementors of
    Arbitrary. Override Arbitrary.exhaustive(long maxNumberOfGeneratedSamples) instead.

  • TypeUsage.getTypeArguments(): In case of type variables or wildcard types
    this method will now return the upper bound's type arguments if there is
    a single upper bound and no lower bound. This enables correct generation
    of variables like T extends Map<Integer, String>.

Bug Fixes

  • @ForAll annotation could not be replaced by self-made annotation. Now it can.

  • Annotations in type parameters of bounds of type variables
    are now correctly recognized.

  • Annotations in type parameters of bounds of wildcards
    are now correctly recognized.