StateMachineFactory<STATE extends Object, ACTION extends Object, MOCKS extends Object> typedef
StateMachineFactory<STATE extends Object, ACTION extends Object, MOCKS extends Object> =
StateMachine<STATE, ACTION> Function(MOCKS mocks, STATE initialState)
Creates a real StateMachine for one transition test case.
The runner passes a fresh mock bundle and the source state for the case. Implementations should return the production StateMachine with that source state as its initial state.
Implementation
typedef StateMachineFactory<STATE extends Object, ACTION extends Object,
MOCKS extends Object>
= fsm.StateMachine<STATE, ACTION> Function(
MOCKS mocks,
STATE initialState,
);