diff options
Diffstat (limited to 'sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest')
-rw-r--r-- | sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/ScannerMediumTester.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/ScannerMediumTester.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/ScannerMediumTester.java index 6e4aad7c736..a3a1024621d 100644 --- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/ScannerMediumTester.java +++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/ScannerMediumTester.java @@ -354,7 +354,7 @@ public class ScannerMediumTester extends ExternalResource { } public FakeMetricsRepositoryLoader add(Metric<?> metric) { - metric.setId(metricId++); + metric.setUuid("metric" + metricId++); metrics.add(metric); metricId++; return this; |