diff options
author | Eric Giffon <eric.giffon@sonarsource.com> | 2024-09-24 15:20:13 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-10-09 20:02:46 +0000 |
commit | 449c62b7f35b191a320f8cfd7d378539c6864a51 (patch) | |
tree | 95702c2014c130734ce8830d40f9439ebbb26346 /server/sonar-db-dao/src/test/java | |
parent | f32f5bdeb0d2105eab86d71e1cb75e1fd6e8331b (diff) | |
download | sonarqube-449c62b7f35b191a320f8cfd7d378539c6864a51.tar.gz sonarqube-449c62b7f35b191a320f8cfd7d378539c6864a51.zip |
SONAR-22872 Update DB populator to write JSON measures
Diffstat (limited to 'server/sonar-db-dao/src/test/java')
-rw-r--r-- | server/sonar-db-dao/src/test/java/org/sonar/db/createdb/PopulateDb.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-db-dao/src/test/java/org/sonar/db/createdb/PopulateDb.java b/server/sonar-db-dao/src/test/java/org/sonar/db/createdb/PopulateDb.java index 33916de43cf..862099c93d5 100644 --- a/server/sonar-db-dao/src/test/java/org/sonar/db/createdb/PopulateDb.java +++ b/server/sonar-db-dao/src/test/java/org/sonar/db/createdb/PopulateDb.java @@ -255,7 +255,7 @@ public class PopulateDb { // create live measure for the branch projectLiveMeasureMetrics.stream() .map(sqContext.metricDtosByKey::get) - .forEach(metricDto -> sqContext.dbTester().measures().insertLiveMeasureWithSensibleValues(branchAndComponentDto.compo, metricDto)); + .forEach(metricDto -> sqContext.dbTester().measures().insertMeasureWithSensibleValues(branchAndComponentDto.compo, metricDto)); // create snapshots for the current branch long time = System2.INSTANCE.now(); @@ -270,7 +270,7 @@ public class PopulateDb { // insert project measure for the snapshot projectProjectMeasureMetrics.stream() .map(sqContext.metricDtosByKey::get) - .forEach(metricDto -> sqContext.dbTester().measures().insertMeasureWithSensibleValues(branchAndComponentDto.compo, snapshotDto, metricDto)); + .forEach(metricDto -> sqContext.dbTester().measures().insertProjectMeasureWithSensibleValues(branchAndComponentDto.compo, snapshotDto, metricDto)); } SnapshotDto lastSnapshotDto = snapshots.get(0); lastSnapshotDto.setLast(true); @@ -300,7 +300,7 @@ public class PopulateDb { // create live measure for this file fileLiveMeasureMetrics.stream() .map(sqContext.metricDtosByKey::get) - .forEach(metricDto -> sqContext.dbTester().measures().insertLiveMeasureWithSensibleValues(fileComponentDto, metricDto)); + .forEach(metricDto -> sqContext.dbTester().measures().insertMeasureWithSensibleValues(fileComponentDto, metricDto)); } sqContext.dbTester.forceCommit(); |