//workflow/com.squareup.workflow1.testing/RenderTestResult
RenderTestResult¶
[jvm] interface RenderTestResult<PropsT, StateT, OutputT>
Result of a RenderTester.render call that can be used to verify that a WorkflowAction was processed and perform assertions on that action.
See also¶
jvm
com.squareup.workflow1.testing.RenderTestResult |
Functions¶
Name | Summary |
---|---|
verifyAction | [jvm] Content abstract fun verifyAction(block: (WorkflowAction<PropsT, StateT, OutputT>) -> Unit) More info Asserts that the render pass handled either a workflow/worker output or a rendering event, and passes the resulting WorkflowAction to block for asserting. |
verifyActionResult | [jvm] Content abstract fun verifyActionResult(block: (StateT, output: WorkflowOutput<OutputT>?) -> Unit) More info Asserts that the render pass handled either a workflow/worker output or a rendering event, “executes” the action with the state passed to testRender, then invokes block with the resulting state and output values. |