//workflow/com.squareup.workflow1.testing/WorkflowTestParams/StartMode/StartFromCompleteSnapshot
StartFromCompleteSnapshot¶
[jvm] class StartFromCompleteSnapshot(snapshot: TreeSnapshot) : WorkflowTestParams.StartMode<Nothing>
Starts the workflow from its initial state (as specified by initial state), with a non-null snapshot. Only applies to StatefulWorkflows.
This differs from StartFromWorkflowSnapshot because it represents a complete snapshot of the entire tree, not just the individual snapshot for the root workflow.
Parameters¶
jvm
snapshot | A Snapshot that is the entire snapshot from the workflow tree, as returned by WorkflowTester.awaitNextSnapshot. To test with only the snapshot returned by snapshotState, use StartFromWorkflowSnapshot. |
Constructors¶
StartFromCompleteSnapshot | [jvm] fun StartFromCompleteSnapshot(snapshot: TreeSnapshot)A Snapshot that is the entire snapshot from the workflow tree, as returned by WorkflowTester.awaitNextSnapshot. |
Properties¶
Name | Summary |
---|---|
snapshot | [jvm] val snapshot: TreeSnapshotA Snapshot that is the entire snapshot from the workflow tree, as returned by WorkflowTester.awaitNextSnapshot. |