@Target(value={METHOD,ANNOTATION_TYPE})
@Retention(value=RUNTIME)
@Documented
@Testable
@API(status=STABLE,
since="1.0")
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 |
java.lang.String |
seed |
ShrinkingMode |
shrinking |
java.lang.String |
stereotype |
int |
tries |
public abstract ShrinkingMode shrinking
@API(status=MAINTAINED, since="1.0") public abstract GenerationMode generation
@API(status=MAINTAINED, since="1.0") public abstract AfterFailureMode afterFailure