EasyRandomParameters |
EasyRandomParameters.bypassSetters(boolean bypassSetters) |
Flag to bypass setters if any and use reflection directly instead.
|
EasyRandomParameters |
EasyRandomParameters.charset(java.nio.charset.Charset charset) |
Set the charset to use for character based fields.
|
EasyRandomParameters |
EasyRandomParameters.collectionSizeRange(int minCollectionSize,
int maxCollectionSize) |
Set the collection size range.
|
EasyRandomParameters |
EasyRandomParameters.copy() |
Return a shallow copy of randomization parameters.
|
EasyRandomParameters |
EasyRandomParameters.dateRange(java.time.LocalDate min,
java.time.LocalDate max) |
Set the date range.
|
EasyRandomParameters |
EasyRandomParameters.excludeField(java.util.function.Predicate<java.lang.reflect.Field> predicate) |
Exclude a field from being randomized.
|
EasyRandomParameters |
EasyRandomParameters.excludeType(java.util.function.Predicate<java.lang.Class<?>> predicate) |
Exclude a type from being randomized.
|
EasyRandomParameters |
EasyRandomParameters.exclusionPolicy(ExclusionPolicy exclusionPolicy) |
Provide a custom exclusion policy.
|
EasyRandomParameters |
EasyRandomParameters.ignoreRandomizationErrors(boolean ignoreRandomizationErrors) |
With this parameter, any randomization error will be silently ignored and the corresponding field will be set to null.
|
EasyRandomParameters |
EasyRandomParameters.objectFactory(ObjectFactory objectFactory) |
Provide a custom object factory.
|
EasyRandomParameters |
EasyRandomParameters.objectPoolSize(int objectPoolSize) |
Set the number of different objects to generate for a type.
|
EasyRandomParameters |
EasyRandomParameters.overrideDefaultInitialization(boolean overrideDefaultInitialization) |
Should default initialization of field values be overridden?
E.g.
|
EasyRandomParameters |
EasyRandomParameters.randomizationDepth(int randomizationDepth) |
Set the randomization depth for objects graph.
|
<T> EasyRandomParameters |
EasyRandomParameters.randomize(java.lang.Class<T> type,
Randomizer<T> randomizer) |
Register a custom randomizer for a given type.
|
<T> EasyRandomParameters |
EasyRandomParameters.randomize(java.util.function.Predicate<java.lang.reflect.Field> predicate,
Randomizer<T> randomizer) |
Register a custom randomizer for the given field predicate.
|
EasyRandomParameters |
EasyRandomParameters.randomizerProvider(RandomizerProvider randomizerProvider) |
Provide a custom randomizer provider.
|
EasyRandomParameters |
EasyRandomParameters.randomizerRegistry(RandomizerRegistry registry) |
|
EasyRandomParameters |
EasyRandomParameters.scanClasspathForConcreteTypes(boolean scanClasspathForConcreteTypes) |
Should the classpath be scanned for concrete types when a field with an interface or abstract
class type is encountered?
Deactivated by default.
|
EasyRandomParameters |
EasyRandomParameters.seed(long seed) |
Set the initial random seed.
|
EasyRandomParameters |
EasyRandomParameters.stringLengthRange(int minStringLength,
int maxStringLength) |
Set the string length range.
|
EasyRandomParameters |
EasyRandomParameters.timeRange(java.time.LocalTime min,
java.time.LocalTime max) |
Set the time range.
|