Hi All,
Currently I am facing challenges in unit testing of zeebe handler’s handle method. handle method take two parameter JobClinet and ActivateJob.
I am using mockito to mock JobClient
client.newCompleteCommand(job.getKey()).variables(responseMap).send().join();
Mocking is not possible beyond newCompleteCommand().It returned null in spite of mocking
CompleteJobCommandStep1 which is internal to ZeeBe worker.
Is there any way we can mock , any help in this regard will be appreciated.