public interface RandomizerContext
Randomizer
.
This interface provides information about the randomization context.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCurrentField()
Return the full path to the current field being randomized (starting from the first field in the root type).
|
java.lang.Object |
getCurrentObject()
Return the currently randomized object in the object graph.
|
int |
getCurrentRandomizationDepth()
Get the current level in the hierarchy of the object graph.
|
EasyRandomParameters |
getParameters()
Return the currently used parameters by the enclosing
EasyRandom . |
java.lang.Object |
getRootObject()
Return the root object being randomized (instance of
getTargetType() . |
java.lang.Class<?> |
getTargetType()
Return the target type (parameter of
EasyRandom.nextObject(Class) ). |
java.lang.Class<?> getTargetType()
EasyRandom.nextObject(Class)
).java.lang.Object getRootObject()
getTargetType()
.java.lang.Object getCurrentObject()
java.lang.String getCurrentField()
int getCurrentRandomizationDepth()
EasyRandomParameters getParameters()
EasyRandom
.Copyright © 2019. All Rights Reserved.