StartFromCompleteSnapshot
class StartFromCompleteSnapshot(val snapshot: TreeSnapshot) : WorkflowTestParams.StartMode<Nothing> (source)
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
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.