fixture-monkey icon indicating copy to clipboard operation
fixture-monkey copied to clipboard

Using Javax and Jakarta validation plugin together doesn't work

Open SooKim1110 opened this issue 1 year ago • 0 comments

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.

SooKim1110 avatar Apr 22 '23 02:04 SooKim1110