Hi I do not see a lot of examples on how I can test conditions in a workflow where the Workflow.await is called or if the workflow code invoked continueAsNew etc. is there a conical /efficient way of writing these tests with the Junit5 extensions? Any pointers appreciated. Is there reference documentation for the testing APIs I can refer to?
Look at this sample.
The basic idea is to use TestWorkflowEnvironmentor or one of the JUnit rules. Then testEnv.sleep can be used to jump time ahead.