@Target(value={METHOD,ANNOTATION_TYPE})
@Retention(value=RUNTIME)
@Documented
public @interface Property
@Property
to mark methods that serve as properties.
Those methods usually have or more parameters annotated with ForAll.
They are executed (tried) several times,
either until they fail or until the configured number of tries()
has been reached.
Just like methods annotated with Example example, annotated methods
must not be private. They can either return Boolean
, boolean
or void
.Example
,
ShrinkingMode
,
GenerationMode
,
AfterFailureMode
,
Data
Modifier and Type | Fields and Description |
---|---|
static java.lang.String |
DEFAULT_STEREOTYPE |
static int |
MAX_DISCARD_RATIO_NOT_SET |
static java.lang.String |
SEED_NOT_SET |
static int |
TRIES_NOT_SET |
Modifier and Type | Optional Element and Description |
---|---|
AfterFailureMode |
afterFailure |
GenerationMode |
generation |
int |
maxDiscardRatio |
Reporting[] |
reporting
Deprecated.
Use annotation Report instead
|
java.lang.String |
seed |
ShrinkingMode |
shrinking |
java.lang.String |
stereotype |
int |
tries |
public abstract ShrinkingMode shrinking
public abstract GenerationMode generation
public abstract AfterFailureMode afterFailure