Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,21 @@ private static void assertVulnerability(
assertThat(vulnerability.getReferences(), hasSize(numberOfReferences));
}

@Test
void shouldHaveSolutionsForAllDefaultVulnerabilities() {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better check all main properties like in the previous method (extract one from there) rather than one off for the solutions.

// Given
DefaultVulnerabilities vulnerabilities = new DefaultVulnerabilities(Locale.ROOT);
// When / Then
vulnerabilities
.getAll()
.forEach(
vulnerability ->
assertThat(
"Missing solution for: " + vulnerability.getName(),
vulnerability.getSolution(),
is(not(emptyString()))));
}

@Test
void shouldLoadDefaultVulnerabilitiesForUnknownLocale() {
// Given
Expand Down
Loading