TestPojoBuilder<T> |
TestPojoBuilder.addExcludedField(String fieldName) |
Adds a field name to the builder so that this field will not be generated.
|
TestPojoBuilder<T> |
TestPojoBuilder.addExcludedFields(String fieldName,
String... fields) |
Adds multiple fields to be excluded from generation.
|
TestPojoBuilder<T> |
TestPojoBuilder.addGenerator(Generator generator) |
Adds a custom generator for a type that isn't currently supported out of the box.
|
TestPojoBuilder<T> |
TestPojoBuilder.addLimiter(String fieldName,
Limiter limiter) |
Adds a new Limiter per field name that will limit and control the randomness of the generated field.
|
TestPojoBuilder<T> |
TestPojoBuilder.addPostGenerator(String fieldTriggered,
String fieldToSet,
PostGenerator postGenerator) |
|
TestPojoBuilder<T> |
TestPojoBuilder.addProviderFunction(ProviderFunction providerFunction,
Class<?> clazz,
Class<?>... clazzes) |
Adds a custom provider in order to allow the builder to know how to create a *New* object of that type.
|
TestPojoBuilder<T> |
TestPojoBuilder.addProviderFunction(ProviderFunction providerFunction,
String builderMethod,
Class<?> clazz,
Class<?>... clazzes) |
Adds a custom provider in order to allow the builder to know how to create a *New* object of that type.
|
static <T> TestPojoBuilder<T> |
TestPojo.builder(Class<T> clazz) |
|
static <T> TestPojoBuilder<T> |
TestPojo.builder(Class<T> clazz,
ProviderFunction providerFunction) |
|
TestPojoBuilder<T> |
TestPojoBuilder.setRandomGeneratorSeed(long seed) |
|
TestPojoBuilder<T> |
TestPojoBuilder.setWarnOnFieldNotExisting(boolean warn) |
Typically, if you set an excluded field or limiter, we will throw an exception to let you know that
the excludes or limiter isn't going to be used.
|