| 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) |
BigDecimal |
magnitude(Object value) |
addComponentGenerators, canGenerateForParametersOfTypes, canRegisterAsType, canShrink, compatibleWithTypeParameter, configurationAnnotationsOn, configure, configure, copy, gen, gen, hasComponents, narrow, numberOfNeededComponents, provide, 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)
public List<Boolean> doShrink(SourceOfRandomness random, Boolean larger)
public BigDecimal magnitude(Object value)
Copyright © 2019. All rights reserved.