Skip to content

Commit

Permalink
[FIX_TERMINATOR_TEST_VARIABLES] terminator is not counted in some dec…
Browse files Browse the repository at this point in the history
…ision tests
  • Loading branch information
elguardian committed Mar 26, 2024
1 parent 893da23 commit 3b03939
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void testProcessWithBusinessRuleTask() throws Exception {

List<VariableInstance> variables = queryClient.findVariablesCurrentState(processInstanceId);
assertNotNull(variables);
assertEquals(2, variables.size());
assertEquals(3, variables.size());
Map<String, String> mappedVars = variables.stream().collect(Collectors.toMap(VariableInstance::getVariableName, VariableInstance::getValue));
assertEquals("Person{name='john' age='35'}", mappedVars.get("person"));
processInstanceId = null;
Expand Down Expand Up @@ -119,7 +119,7 @@ public void testProcessWithDecisionTask() throws Exception {

List<VariableInstance> variables = queryClient.findVariablesCurrentState(processInstanceId);
assertNotNull(variables);
assertEquals(4, variables.size());
assertEquals(5, variables.size());
Map<String, String> mappedVars = variables.stream().collect(Collectors.toMap(VariableInstance::getVariableName, VariableInstance::getValue));
assertEquals("27", mappedVars.get("vacationDays"));
processInstanceId = null;
Expand Down

0 comments on commit 3b03939

Please sign in to comment.