Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
elguardian committed Nov 9, 2023
1 parent a91f104 commit 1791f0c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public void testCompensationProcess() throws Exception {

assertProcessInstanceEvent(event.get(), "compensateAll", "Compensate All", ProcessInstanceStateEventBody.EVENT_TYPE_ENDED);

List<ProcessInstanceNodeEventBody> nodes = findNodeInstanceEvents(events, 2);
List<ProcessInstanceNodeEventBody> nodes = findNodeInstanceEvents(events, ProcessInstanceNodeEventBody.EVENT_TYPE_EXIT);
assertThat(nodes).hasSize(9).extractingResultOf("getNodeType").contains("StartNode", "ActionNode", "BoundaryEventNode", "EndNode");

}
Expand Down Expand Up @@ -284,7 +284,7 @@ public void testBasicUserTaskProcessAbort() throws Exception {
events = publisher.extract();
assertThat(events).hasSize(4);

triggered = findNodeInstanceEvents(events, 2);
triggered = findNodeInstanceEvents(events, ProcessInstanceNodeEventBody.EVENT_TYPE_ABORTED);
assertThat(triggered).hasSize(1).extractingResultOf("getNodeName").containsOnly("First Task");

assertProcessInstanceEvent(events.get(3), "UserTasksProcess", "UserTasksProcess", ProcessInstance.STATE_ABORTED);
Expand Down

0 comments on commit 1791f0c

Please sign in to comment.