Altering Java class default value
1. Implementing JavaTypeArbitraryGenerator interface
Override specific type method to redefine default value
public class CustomJavaTypeArbitraryGenerator implements JavaTypeArbitraryGenerator{
@Override
public StringArbitrary strings(){
...
}
}
2. Altering javaTypeArbitraryGenerator
option
FixtureMonkey fixtureMonkey = FixtureMonkey.builder()
.plugin(new JavaxValidationPlugin())
.javaTypeArbitraryGenerator(new CustomJavaTypeArbitraryGenerator())
.build();