Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
gclaussn committed Jul 28, 2024
1 parent 2395565 commit 4e70fcf
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,17 @@ void testExecute() {
}

@Test
void testErrorContainsActiveElements() {
void testErrorContainsElementInstances() {
var e = assertThrows(AssertionError.class, () -> tc.createExecutor(engine)
.withTaskTimeout(1000)
.withVariable("elements", List.of(1, 2, 3))
.verify(ProcessInstanceAssert::isCompleted)
.execute()
);

assertThat(e.getMessage()).contains("found active elements:");
assertThat(e.getMessage()).contains(" - multiInstanceScope");
assertThat(e.getMessage()).contains(" - userTask");
assertThat(e.getMessage()).contains("found element instances:");
assertThat(e.getMessage()).contains(" - multiInstanceScope (activated)");
assertThat(e.getMessage()).contains(" - userTask (activated)");
}

private class TestCase extends AbstractJUnit5TestCase {
Expand Down

0 comments on commit 4e70fcf

Please sign in to comment.