aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src/testFixtures/java/org
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2024-10-11 11:25:36 +0200
committersonartech <sonartech@sonarsource.com>2024-10-21 20:03:59 +0000
commit65d606200841e8d63af5e2ad5039cefdd69bc72a (patch)
tree4e69c663a9a9a63fa64d88f6a55c02688cd3b6ba /sonar-scanner-engine/src/testFixtures/java/org
parent67768656bfe3462a6554ffc236da801cffd20f54 (diff)
downloadsonarqube-65d606200841e8d63af5e2ad5039cefdd69bc72a.tar.gz
sonarqube-65d606200841e8d63af5e2ad5039cefdd69bc72a.zip
SONAR-23098 Parse dependencies in the FOSSA report
Diffstat (limited to 'sonar-scanner-engine/src/testFixtures/java/org')
-rw-r--r--sonar-scanner-engine/src/testFixtures/java/org/sonar/scanner/mediumtest/AnalysisResult.java4
1 files changed, 4 insertions, 0 deletions
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<ScannerReport.Dependency> dependencies() {
+ return readFromReport(ScannerReportReader::readDependencies);
+ }
+
@NotNull
private <G> List<G> readFromReport(InputComponent component, BiFunction<ScannerReportReader, Integer, CloseableIterator<G>> readerMethod) {
int ref = ((DefaultInputComponent) component).scannerId();