Skip to content

Commit

Permalink
Update FlattenMojoOmitExclusionsTest.java
Browse files Browse the repository at this point in the history
Make test code more explicit
  • Loading branch information
Joseph Leonard committed Aug 2, 2022
1 parent dea08a5 commit 61dbb74
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -48,7 +48,8 @@ public void testOmitExclusions() throws Exception {
.getDependencies()
.stream()
.filter(dep -> !dep.getExclusions().isEmpty())
.forEach(dep -> fail("No exclusions should be present in flattened POM."));
.findAny()
.ifPresent(dep -> fail("No exclusions should be present in flattened POM."));
}


Expand Down

0 comments on commit 61dbb74

Please sign in to comment.