fixture-monkey
fixture-monkey copied to clipboard
Using Javax and Jakarta validation plugin together doesn't work
Describe the bug
When setting fixture monkey with both Javax and Jakarta plugin, the option is set as the later one.
Your environment
- version of Fixture Monkey 0.5.5
- version of Java/Kotlin 17
Steps to reproduce
private static final FixtureMonkey SUT = FixtureMonkey.builder()
.plugin(new JakartaValidationPlugin())
.plugin(new JavaxValidationPlugin())
.defaultNotNull(true)
.build();
Using fixture monkey set as above, only JavaxValidation annotation constraints are applied.
javaArbitraryResolver
, javaTimeArbitraryResolver
options are overwritten.
Expected behaviour
Both Jakarta and Javax annotation constraints should be applied.
Actual behaviour
Only the last plugin applied works.