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, gen, hasComponents, narrow, numberOfNeededComponents, provide, shrink, types
public 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 2010-2016 Paul R. Holser, Jr. All rights reserved. Licensed under The MIT License. pholser@alumni.rice.edu