java.lang.AssertionError: Expected element with id StartEvent_ to be passed 1 times, but was 0
at io.camunda.zeebe.process.test.assertions.ProcessInstanceAssert.hasPassedElement(ProcessInstanceAssert.java:226)
at io.camunda.zeebe.process.test.assertions.ProcessInstanceAssert.hasPassedElement(ProcessInstanceAssert.java:189)
at com.camunda.consulting.ExampleProcessUnitTest.testHappyPath(ExampleProcessUnitTest.java:35)
...
A message like
Could not find StartEvent_ in the list of passed elements. Instead the process has passed [StartEvent_1, Activity_2]
[!Note]
Heads up! We are building a new Java testing library for Camunda 8.6. The new library will replace Zeebe Process Test.
Read more about upcoming changes here and stay tuned for updates. :rocket:
Description
running this assertion:
throws an assertion error like
A message like
is more helpful.
camunda-bpm-assert shows this error message: https://github.com/camunda/camunda-bpm-platform/blob/master/test-utils/assert/core/src/main/java/org/camunda/bpm/engine/test/assertions/bpmn/ProcessInstanceAssert.java#L287