Behavior<State, System> class
abstract
Describes behavior of a stateful test.
See also:
- runBehavior, runs a stateful test according to the behavior.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createSystem(
State state) → FutureOr< System> - Creates a new system with the given state.
-
destroySystem(
System system) → FutureOr< void> - Destroy the given system.
-
generateCommands(
State state) → FutureOr< List< Command< >State, System> > - Generates a list of commands to run on the given state.
-
initialPrecondition(
State state) → FutureOr< bool> - Returns true if the given state satisfies the initial precondition.
-
initialState(
) → FutureOr< State> - Creates a new state.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onExecute(
State state, System system) → FutureOr< void> - Called at the beginning of the execution phase.
-
onGenerate(
State state) → FutureOr< void> - Called at the beginning of the command generation phase.
-
setUp(
) → FutureOr< void> - Called before the cycle is run.
-
setUpAll(
) → FutureOr< void> - Called once before all cycles are run.
-
tearDown(
) → FutureOr< void> - Called after the cycle is run.
-
tearDownAll(
) → FutureOr< void> - Called once after all cycles are run.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited