public class ExclusionRandomizerRegistry extends AbstractRandomizerRegistry implements RandomizerRegistry
RandomizerRegistry to exclude fields using a FieldDefinition.| Constructor and Description |
|---|
ExclusionRandomizerRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFieldDefinition(FieldDefinition<?,?> fieldDefinition)
Add a field definition.
|
Randomizer<?> |
getRandomizer(java.lang.Class<?> clazz)
Retrieves a randomizer for a given type.
|
Randomizer<?> |
getRandomizer(java.lang.reflect.Field field)
Retrieves a randomizer for the given field.
|
void |
init(EnhancedRandomParameters parameters)
Initialize the registry.
|
hasAllModifiers, hasName, hasType, isAnnotatedWithOneOf, isDeclaredInClasspublic void init(EnhancedRandomParameters parameters)
init in interface RandomizerRegistryparameters - of the EnhancedRandom instance being configuredpublic Randomizer<?> getRandomizer(java.lang.reflect.Field field)
getRandomizer in interface RandomizerRegistryfield - the field for which a randomizer was registeredpublic Randomizer<?> getRandomizer(java.lang.Class<?> clazz)
getRandomizer in interface RandomizerRegistryclazz - the type for which a randomizer was registeredpublic void addFieldDefinition(FieldDefinition<?,?> fieldDefinition)
fieldDefinition - to addCopyright © 2019. All Rights Reserved.