Features
On This Page
Fixture monkey supports generating valid data based on Jakarta Bean Validation 3.0 annotations with the Fixture Monkey Jakarta Validation Plugin.
Javax Bean Validation is also supported with the Fixture Monkey Javax Validation Plugin
Dependencies
Gradle
testImplementation("com.navercorp.fixturemonkey:jakarta-validation:1.1.2")
Maven
<dependency>
<groupId>com.navercorp.fixturemonkey</groupId>
<artifactId>fixture-monkey-jakarta-validation</artifactId>
<version>1.1.2</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()