From: Julien HENRY Date: Fri, 11 Oct 2024 09:25:36 +0000 (+0200) Subject: SONAR-23098 Parse dependencies in the FOSSA report X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=65d606200841e8d63af5e2ad5039cefdd69bc72a;p=sonarqube.git SONAR-23098 Parse dependencies in the FOSSA report --- diff --git a/sonar-scanner-engine/src/testFixtures/java/org/sonar/scanner/mediumtest/AnalysisResult.java b/sonar-scanner-engine/src/testFixtures/java/org/sonar/scanner/mediumtest/AnalysisResult.java index 5751aada0f8..584bf3dbfd7 100644 --- a/sonar-scanner-engine/src/testFixtures/java/org/sonar/scanner/mediumtest/AnalysisResult.java +++ b/sonar-scanner-engine/src/testFixtures/java/org/sonar/scanner/mediumtest/AnalysisResult.java @@ -203,6 +203,10 @@ public class AnalysisResult implements AnalysisObserver { return readFromReport(ScannerReportReader::readCves); } + public List dependencies() { + return readFromReport(ScannerReportReader::readDependencies); + } + @NotNull private List readFromReport(InputComponent component, BiFunction> readerMethod) { int ref = ((DefaultInputComponent) component).scannerId();