| Constructor and Description |
|---|
BooleanGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(ValuesOf flag)
Tells this generator to generate the values
true and false on alternating requests. |
Boolean |
generate(SourceOfRandomness random,
GenerationStatus status) |
addComponentGenerators, canGenerateForParametersOfTypes, canRegisterAsType, compatibleWithTypeParameter, configure, hasComponents, numberOfNeededComponents, provideRepository, typespublic void configure(ValuesOf flag)
Tells this generator to generate the values true and false on alternating requests.
Without this configuration, true and false are generated with approximately equal
probability.
flag - annotation to turn off random generation and replace it with alternating valuespublic Boolean generate(SourceOfRandomness random, GenerationStatus status)
Copyright © 2015. All Rights Reserved.