| 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. |
List<Boolean> |
doShrink(SourceOfRandomness random,
Boolean larger) |
Boolean |
generate(SourceOfRandomness random,
GenerationStatus status) |
addComponentGenerators, canGenerateForParametersOfTypes, canRegisterAsType, canShrink, compatibleWithTypeParameter, configurationAnnotationsOn, configure, configure, hasComponents, narrow, numberOfNeededComponents, provideRepository, shrink, 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 © 2016. All rights reserved.