Release 1.2.1
New and Enhanced Features
- New configuration parameter
defaultGeneration
forjqwik.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. OverrideArbitrary.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 likeT 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.