| Interface | Description |
|---|---|
| Gen<T> |
Represents a strategy for generating random values.
|
| GenerationStatus |
Generators are fed instances of this interface on each generation
so that, if they choose, they can use these instances to influence the
results of a generation for a particular property parameter. |
| Generators |
An access point for available generators.
|
| Shrink<T> |
Represents a strategy for producing objects "smaller than" a given object.
|
| Class | Description |
|---|---|
| ComponentizedGenerator<T> |
Produces values for property parameters of types that have parameterizations
that would also need generation, such as collections, maps, and predicates.
|
| Ctor<T> |
Produces instances of a class by generating values for the parameters of
one of the constructors on the class, and invoking the constructor.
|
| Fields<T> |
Produces instances of a class by reflecting the class's fields and
generating random values for them.
|
| GenerationStatus.Key<T> | |
| Generator<T> |
Produces values for property parameters.
|
| Lambdas |
Helper class for creating instances of "functional interfaces".
|
| Exception | Description |
|---|---|
| GeneratorConfigurationException |
Raised if a problem arises when attempting to configure a generator with
annotations from a property parameter.
|
| Annotation Type | Description |
|---|---|
| Also |
Mark a parameter of a
Property method with this annotation to
ensure that a limited set of values are guaranteed to be used as the value
of that parameter to test the property. |
| Distinct |
Mark a parameter of a
Property
method with this annotation to make values generated for the parameter
distinct from each other. |
| GeneratorConfiguration |
Apply this annotation to an annotation that marks property parameters,
in order that the marked annotation can be used to configure
generators for values of the parameter's type.
|
| Only |
Mark a parameter of a
Property method with this annotation to
limit the set of values of that parameter used to test the property. |
| Size |
Mark a parameter of a
Property
method with this annotation to constrain the size of values generated for
the parameter. |
| ValuesOf | Deprecated
In exhaustive mode,
boolean and enum parameters get the
behavior of this annotation by default. |
Copyright © 2019. All rights reserved.