Skip to content

Recursive Generation Improvements

Compare
Choose a tag to compare
@jlink jlink released this 18 Aug 15:21

New and Enhanced Features

  • Arbitraries.lazyOf(Supplier<Arbitrary<T>> ...) is now the method of choice for
    recursive value generation. It has much better shrinking behaviour than the
    more generic lazy() combined with oneOf().

  • Added PropertyLifecycleContext.attributes(), which allows to query, set and change
    a property method's attributes like number of tries and seed within a
    AroundPropertyHook lifecycle hook.

  • Added @PropertyDefaults annotation which allows to set the defaults
    of all property methods in a container.

Breaking Changes

  • No known breaking changes

Bug Fixes