use of com.mercedesbenz.sechub.commons.model.Severity in project sechub by mercedes-benz.
the class ReportTrafficLightCalculatorTest method prepareSechubResultWithFindings.
/* +-----------------------------------------------------------------------+ */
/* +............................ Helpers ..................................+ */
/* +-----------------------------------------------------------------------+ */
private SecHubReportModel prepareSechubResultWithFindings(Severity... severities) {
List<SecHubFinding> findingList = new ArrayList<>();
for (Severity severity : severities) {
SecHubFinding finding = new SecHubFinding();
finding.setSeverity(severity);
findingList.add(finding);
}
SecHubReportModel model = new SecHubReportModel();
model.getResult().getFindings().addAll(findingList);
return model;
}
Aggregations