Package net.jqwik.api.stateful
Schnittstelle ActionSequence<M extends @Nullable Object>
- Typparameter:
M
- The type of the model
A sequence of Actions that can be run with a model of type
M
-
Verschachtelte Klassen - Übersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungPeek into the model of a running sequence.runState()
int
size()
withInvariant
(@Nullable String label, Invariant<M> invariant) Add a labelled invariant to a sequence.default ActionSequence
<M> withInvariant
(Invariant<M> invariant) Add an unlabelled invariant to a sequence.
-
Methodendetails
-
runActions
-
run
-
size
@API(status=EXPERIMENTAL, since="1.3.3") int size() -
withInvariant
Add an unlabelled invariant to a sequence.- Parameter:
invariant
- will be checked after each successful invocation of run(Object)- Gibt zurück:
- the same sequence instance
- Siehe auch:
-
withInvariant
@API(status=MAINTAINED, since="1.4.0") ActionSequence<M> withInvariant(@Nullable String label, Invariant<M> invariant) Add a labelled invariant to a sequence.- Parameter:
label
- will show up in error messages when the invariant failsinvariant
- will be checked after each successful invocation of run(Object)- Gibt zurück:
- the same sequence instance
- Siehe auch:
-
finalModel
M finalModel() -
runState
ActionSequence.RunState runState() -
peek
Peek into the model of a running sequence. ThemodelPeeker
will be called after each successful invocation of run(Object) but before checking invariants.- Parameter:
modelPeeker
-- Gibt zurück:
- the same sequence instance
-