Package com.pholser.junit.quickcheck
Annotation Interface When
Mark a parameter of a
Property method with this annotation to
specify metadata about values generated for that parameter.-
Optional Element Summary
Optional Elements
-
Element Details
-
discardRatio
int discardRatio- Returns:
- the ratio of discarded generated values to successful generated
values above which values for the annotated property parameter will
no longer be generated. For a non-positive value, an
IllegalArgumentExceptionis raised. The default value is 10, to curtail generation forsatisfies()expressions that are difficult to satisfy or can never be satisfied (inadvertently or otherwise).
- Default:
- 10
-
satisfies
String satisfies- Returns:
- an OGNL expression
used to constrain the values fed to the annotated property parameter.
The expression should evaluate to a
booleanvalue. Within the expression,"_"refers to the property parameter.
- Default:
- ""
-
seed
long seed- Returns:
- a value to be used as the initial seed for the random value generator. Not specifying a value causes the seed to be chosen randomly.
- Default:
- 0L
-