Release 4.4.0 #954
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
Potentially breaking change
Allow selectors to overwrite initialised values even if
Keys.OVERWRITE_EXISTING_VALUES
is set tofalse
Previously, selectors could not overwrite initialised values if
OVERWRITE_EXISTING_VALUES
was set tofalse
. This behaviour made the setting too restrictive. Starting from this release, selectors can overwrite initialised values.For details, see: https://www.instancio.org/user-guide/#initialised-fields
New Features
New top-level API:
setModel(TargetSelector, Model)
The new API promotes reuse of models. It allows applying a model instance to specific targets via a selector.
Example:
The model can be applied to a specific
Foo
field declared by theContainer
:Coordinate generator for latitude and longitude
Thanks to @StevenPG for the contribution!
Support for marking an individual selector as
lenient()
Other Improvements
instancio-junit
verbose()
outputlenient()
by @armandino in Support for marking an individual selector aslenient()
#932Keys.OVERWRITE_EXISTING_VALUES
by @armandino in Selectors to have higher precedence thanKeys.OVERWRITE_EXISTING_VALUES
#909verbose()
output by @armandino in Add selector matches toverbose()
output #936java.util.concurrent.locks.*
by @armandino in Tests forjava.util.concurrent.locks.*
#937InstancioExtension
: Wrong Seed printed when using a custom seed by method or@WithSettings
annotation #940) by @armandino in Additional seed tests + user guide update (#940) #942InstancioExtension
: Wrong Seed printed when using a custom seed by method or@WithSettings
annotation #940) by @armandino in Seed reporting improvements (#940) #948setModel(TargetSelector, Model)
by @armandino in New top-level API:setModel(TargetSelector, Model)
#943New Contributors
Full Changelog: instancio-parent-4.3.2...instancio-parent-4.4.0
This discussion was created from the release 4.4.0.
Beta Was this translation helpful? Give feedback.
All reactions