| Constructor and Description |
|---|
LambdaGenerator(Class<T> lambdaType,
Generator<U> returnValueGenerator) |
| Modifier and Type | Method and Description |
|---|---|
T |
generate(SourceOfRandomness random,
GenerationStatus status)
Produces a value for a property parameter.
|
addComponentGenerators, canGenerateForParametersOfTypes, canRegisterAsType, canShrink, compatibleWithTypeParameter, configurationAnnotationsOn, configure, configure, doShrink, hasComponents, narrow, numberOfNeededComponents, provideRepository, shrink, typespublic T generate(SourceOfRandomness random, GenerationStatus status)
GeneratorProduces a value for a property parameter.
A generator may raise an unchecked exception if some condition exists which would lead to a confusing generation -- for example, if a generator honored a "range" configuration, and the endpoints were transposed.
generate in class Generator<T>random - source of randomness to be used when generating the valuestatus - an object that the generator can use to influence the
value it produces. For example, a generator for lists can use the
size method to generate lists with a
given number of elements.Copyright © 2016. All rights reserved.