Skip to content

Commit

Permalink
fix assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
elguardian committed May 27, 2024
1 parent fef864f commit dd19a73
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@

import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
import static org.assertj.core.api.Assertions.entry;
import static org.kie.kogito.internal.process.runtime.KogitoProcessInstance.STATE_ABORTED;
import static org.kie.kogito.internal.process.runtime.KogitoProcessInstance.STATE_ACTIVE;

Expand All @@ -56,7 +57,7 @@ public void testVariableMultipleMetadata() throws Exception {
Optional<Variable> var = processEngine.getVariableScope().getVariables().stream().filter(e -> "approver".equals(e.getName())).findAny();
assertThat(var).isPresent();
assertThat(var.get().getMetaData()).hasSize(3);
assertThat(var.get().getMetaData()).flatExtracting("ItemSubjectRef", "approver", "customTags");
assertThat(var.get().getMetaData()).containsExactly(entry("approver", "approver"), entry("customTags", "required"), entry("ItemSubjectRef", "ItemDefinition_9"));

}

Expand Down

0 comments on commit dd19a73

Please sign in to comment.