Class Random
java.lang.Object
org.identityconnectors.contract.data.groovy.Lazy
org.identityconnectors.contract.data.groovy.Random
Generate random strings based on given pattern
This is a Helper class, users of tests will access methods:
Lazy.random(Object)
and Lazy.get(Object)
)
- Author:
- Zdenek Louzensky
-
Field Summary
Fields inherited from class org.identityconnectors.contract.data.groovy.Lazy
successors, value
-
Constructor Summary
-
Method Summary
Methods inherited from class org.identityconnectors.contract.data.groovy.Lazy
get, getSuccessors, getValue, plus, plus, random, random, setSuccessors, setValue
-
Constructor Details
-
Random
Creates a random string based on given pattern.- Parameters:
pattern
- format of pattern
-
Random
Creates a random object of given type- Parameters:
pattern
-clazz
- the class that will be the type of generated object
-
-
Method Details
-
generate
create a random value, that is created once. However further queries will return the same random value. -
getClazz
- Returns:
- the type of generated random class
-