Package com.mayam.wf.attributes.shared
Class AttributeMapRandomizer
java.lang.Object
com.mayam.wf.attributes.shared.AttributeMapRandomizer
Utility class which generates valid
AttributeMap
instances with
random data. When used in unit testing, it is recommended that the
seed be set to a fixed value using setRandomSeed(long)
to make
sure tests behave consistently between runs.- Author:
- Markus MÃ¥rtensson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongenerate()
void
setForceNonNull
(boolean force) void
setRandomSeed
(long seed)
-
Constructor Details
-
AttributeMapRandomizer
-
-
Method Details
-
setRandomSeed
public void setRandomSeed(long seed) -
setForceNonNull
public void setForceNonNull(boolean force) -
generate
-