Skip to content

Commit

Permalink
[incubator-kie-issues#1474] Use Assertj fluent interface
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel-beniamin committed Sep 12, 2024
1 parent 383c937 commit 81bed69
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,13 +325,9 @@ void signavioIterateMultiinstanceMultipleDecisionsOutside() {
void signavioMultiInstanceDecisionTableWithinMultipleFiles() {
DMNRuntime dmnRuntime = createRuntime("MID with outside requirement.dmn", "survey MID SUM.dmn", "Signavio_Concat.dmn");

List<String> decisionNames = dmnRuntime
.getModels()
.stream()
.flatMap(dmnModel -> dmnModel.getDecisions().stream())
.map(DMNNode::getName)
.collect(Collectors.toList());

assertThat(decisionNames).containsOnly("sumUp", "iterating", "determineModifier", "concatNames");
assertThat(dmnRuntime.getModels())
.flatExtracting(DMNModel::getDecisions)
.extracting(DMNNode::getName)
.containsOnly("sumUp", "iterating", "determineModifier", "concatNames");
}
}

0 comments on commit 81bed69

Please sign in to comment.