I’ve stumbled upon a problem that I just can’t seem to figure out.
I’ve tried just following the code and just downloading it directly.
I always get this error:
shouldPackForWork(org.camunda.bpm.example.servicetask.rest.ServiceTaskRestTest): no processes deployed with key 'holiday': processDefinition is null
shouldPackForHoliday(org.camunda.bpm.example.servicetask.rest.ServiceTaskRestTest): no processes deployed with key 'holiday': processDefinition is null
I’ve searched through previous posts and most were solved because people were introducing the wrong id, and I’m pretty sure that’s not the problem here.
I’ve checked the process id, I’ve gone to Postman. The id there is “holiday”. The deployment appears on cockpit.
One curious thing that I found through testing (not sure this is relevant) was that even when I used the id for a different process (as it showed me in Postman) it always gives me the error that the key is not found.
I’m guessing the problem is that somehow I’m not connecting properly to the key list or however it’s stored.
I remade everything and I think it’s working (no errors).
But I have a question. After I run the unit test what’s supposed to happen? How can I check what happened in that specific test, like, which branch did it go through?
It’s stated that it only needs 3 steps, I’m stuck on the last one.
I’m supposed to replace this:
@Rule
public ProcessEngineRule processEngineRule = new ProcessEngineRule();
With this:
@Rule
@ClassRule
public static ProcessEngineRule rule = TestCoverageProcessEngineRuleBuilder.create().build();
Correct?
Eclipse gives me several errors, like “ClassRule cannot be resolved to a type”, as well as “TestCoverageProcessEngineRuleBuilder cannot be resolved”.
I’ve added the dependencies in pom.xml and I’ve changed the ProcessEngineConfiguration in camunda.cfg.xml as well.
What am I missing here?
Apparently I didn’t have mvn installed.
I installed it, set the PATH and everything seemed to be working correctly.
I tried doing mvn clean test but the same problem arose.
I also tried, as you stated, deleting the local repository with: mvn dependency:purge-local-repository
Still, no luck. The same errors appear.
Any more ideas?