Skip to content

Influence Distribution of Container Size

Compare
Choose a tag to compare
@jlink jlink released this 09 Jul 12:30
· 1492 commits to main since this release

New and Enhanced Features

  • You can now influence the random distribution of
    the size of generated multi-value containers
    (sets, lists, arrays, streams, iterators and maps).

  • You can now influence the random distribution of
    the size of generated strings.

  • All container-based arbitraries (e.g. List, Sets, Strings) now generate containers
    without duplicated elements with a higher probability even when they have many elements.

  • String arbitraries now generate duplicate chars and series of chars with a higher probability.

  • Added CharacterArbitrary.numeric() and CharacterArbitrary.alpha().

Breaking Changes

  • ActionSequenceArbitrary no longer extends SizableArbitrary.

  • ActionSequenceArbitrary.ofMinSize() and ActionSequenceArbitrary.ofMaxSize()
    is now deprecated.

  • CharacterArbitrary.digit() is now deprecated.

Bug Fixes

  • Module name now correctly set for testing, web and time modules.
    See #201.

  • No longer throwing ConcurrentModificationException when using sample() within another generator.
    This happened in Java >= 11 only.
    See #205