From 65d606200841e8d63af5e2ad5039cefdd69bc72a Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Fri, 11 Oct 2024 11:25:36 +0200 Subject: [PATCH] SONAR-23098 Parse dependencies in the FOSSA report --- .../java/org/sonar/scanner/mediumtest/AnalysisResult.java | 4 ++++ 1 file changed, 4 insertions(+) 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(); -- 2.39.5