Features

Fixture monkey supports generating valid data based on Jakarta Bean Validation 3.0 annotations with the Fixture Monkey Jakarta Validation Plugin.

Dependencies

Gradle

testImplementation("com.navercorp.fixturemonkey:jakarta-validation:1.0.27")

Maven

<dependency>
  <groupId>com.navercorp.fixturemonkey</groupId>
  <artifactId>fixture-monkey-jakarta-validation</artifactId>
  <version>1.0.27</version>
  <scope>test</scope>
</dependency>

The jakarta validation API and the Hibernate validator are already provided as part of the dependency.

Plugin

FixtureMonkey fixtureMonkey = FixtureMonkey.builder()
    .plugin(new JakartaValidationPlugin())
    .build();
val fixtureMonkey = FixtureMonkey.builder()
    .plugin(JakartaValidationPlugin())
    .build()