Behavior<State, System> class abstract

Describes behavior of a stateful test.

See also:

  • runBehavior, runs a stateful test according to the behavior.

Constructors

Behavior()

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) → System
Creates a new system with the given state.
destroySystem(System system) → void
Destroy the given system.
generateCommands(State state) List<Command<State, System>>
Generates a list of commands to run on the given state.
initialPrecondition(State state) bool
Returns true if the given state satisfies the initial precondition.
initialState() → State
Creates a new state.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onExecute(State state, System system) → void
Called at the beginning of the execution phase.
onGenerate(State state) → void
Called at the beginning of the command generation phase.
setUp() → void
Called before the cycle is run.
setUpAll() → void
Called once before all cycles are run.
tearDown() → void
Called after the cycle is run.
tearDownAll() → 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