Skip to content

Commit

Permalink
Expect to find CWE on any, not all Maven vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Jan 24, 2024
1 parent dcc9dbe commit a428eff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void maven() {
.dataTable(VulnerabilityReport.Row.class, rows -> {
assertThat(rows).isNotEmpty();
assertThat(rows).filteredOn(VulnerabilityReport.Row::isFixWithVersionUpdateOnly).isNotEmpty();
assertThat(rows).extracting(VulnerabilityReport.Row::getCWEs).allSatisfy(cwes -> assertThat(cwes).isNotEmpty());
assertThat(rows).extracting(VulnerabilityReport.Row::getCWEs).anySatisfy(cwes -> assertThat(cwes).isNotEmpty());
}),
//language=xml
pomXml(
Expand Down

0 comments on commit a428eff

Please sign in to comment.