Hi!
Im trying to test my process model based on the description I found on the Camunda blog on this topic(Testing Entire Process Paths | Camunda).
I managed to handle mostly everything but I have struggles with a User Task that has a Java class as Task Listener. When the the test Scenario arrives at this task it throws the following exception:
ENGINE-03051 There was an exception while invoking the TaskListener. Message: 'ENGINE-09008 Exception while instantiating class
The Java class implementation is in my project, I tried to mock it and then add it with Mocks.register() method, but nothing helped. It seems like the engine cannot resolve this class and I have no idea how to solve it. Not sure if I should add something tocamunda.cfg.xml? It has MockExpressionManager as expressionManager property already. The process runs fine otherwise, the problem is only on the test setup.
Thanks if anyone has experience on this any insight would be useful.
Sz