Release 4.0.0 #875
armandino
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What's Changed
New Features
Method assignment improvements
Added a new setting
Keys.ON_SET_METHOD_UNMATCHED
which allows populating an object via setters even if the setter does not have a corresponding field. This allows populating objects with dynamic attributes, such as jOOQ records (see #767 for details and Assignment Settings section of the User Guide).Support for Java 21 sequenced collections
New API for generating the Cartesian product (experimental feature)
A selector and values can be specified using the
with()
method and the results can be obtained by callinglist()
:Example:
This will produce the following list of
Widget
objects:Breaking changes
Using
stream()
with stateful generators such asemit()
andintSeq()
.Since version
4.0.0
, all root objects created bystream()
are completely independent of each other, e.g.:instancio-core-tests
by @armandino in Simplified API contract tests and moved toinstancio-core-tests
#867stream()
semantics when used with stateful generators by @armandino in Breaking change:stream()
semantics when used with stateful generators #8693.25.0
by @armandino in Upgrade AssertJ to3.25.0
#872Full Changelog: instancio-parent-3.7.1...instancio-parent-4.0.0
This discussion was created from the release 4.0.0.
Beta Was this translation helpful? Give feedback.
All reactions