TestSession
A controllable Session test double.
State listeners are invoked on the calling thread, and the current state is delivered immediately when a listener is added. Use controller to drive state transitions directly or script transitions tied to Session.launch and Session.commit calls with TestSessionScript.
Inheritors
Constructors
Returns a TestSession with the provided initialState, a random id and TestSessionScript.auto completing with Session.State.Succeeded.
Returns a TestSession with the provided id, Pending initial state and TestSessionScript.auto completing with Session.State.Succeeded.
Returns a TestSession with the provided id and initialState, using TestSessionScript.auto completing with Session.State.Succeeded.
Properties
Functions
Resets state and state history to the provided state.