TestProgressSession
A controllable ProgressSession test double.
Progress listeners are invoked on the calling thread, and the current progress is delivered immediately when a listener is added. Use controller to drive progress updates alongside state transitions.
Constructors
Returns a TestProgressSession with the provided initialProgress, a random id, Pending initial state and TestSessionScript.auto completing with Session.State.Succeeded.
Returns a TestProgressSession with the provided id, Pending initial state, default initial progress and TestSessionScript.auto completing with Session.State.Succeeded.
Returns a TestProgressSession with the provided id and initialState, default initial progress and TestSessionScript.auto completing with Session.State.Succeeded.
Properties
Returns the controller used to drive this session in tests.
Returns a snapshot of progress updates for this session.
Returns the current state of this session.
Returns a snapshot of state transitions for this session.
Functions
Resets progress and progress history to the provided progress.