I am trying to figure out how to test some complex workflows.
I have a MainWorkflow that drives an execution and trigger several child workflows.
I would like to unit test MainWorkflow logic and do not care about child workflows as I will be creating separate unit tests for them.
Activities mocking is simple as I am registering activity instances to the worker (and I can mock them with mockito) but with workflows I have to register classes.
I didn’t find any tool for such workflow mocking in the TestWorkflowEnvironment.
I will be grateful for the hints.
SDK version: 1.14.0
How do I set the task queue with the TestWorkflowExtension for junit 5? I follow the sample code to create a test for my workflow that calls a child workflow, but the test hangs because my workflow specifies a task queue name when starting the child workflow. I had to revert to setting up the TestWorkflowEnvironment manually.