aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-monitoring
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2022-09-20 11:59:16 -0500
committersonartech <sonartech@sonarsource.com>2022-10-12 20:03:43 +0000
commit566094fc629ab1e92afb0cdf191a0e2c685b5c35 (patch)
treece172266109cf1c4e81a041e460c6cc7bcd5d50e /server/sonar-webserver-monitoring
parentbcfb1cac55137b838da7a93385b20e0e5ed47abb (diff)
downloadsonarqube-566094fc629ab1e92afb0cdf191a0e2c685b5c35.tar.gz
sonarqube-566094fc629ab1e92afb0cdf191a0e2c685b5c35.zip
SONAR-17352 Refactor component keys to not include branch suffix
Diffstat (limited to 'server/sonar-webserver-monitoring')
-rw-r--r--server/sonar-webserver-monitoring/src/test/java/org/sonar/server/monitoring/ce/RecentTasksDurationTaskTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-webserver-monitoring/src/test/java/org/sonar/server/monitoring/ce/RecentTasksDurationTaskTest.java b/server/sonar-webserver-monitoring/src/test/java/org/sonar/server/monitoring/ce/RecentTasksDurationTaskTest.java
index 5530f3e8a33..bfcee9972ad 100644
--- a/server/sonar-webserver-monitoring/src/test/java/org/sonar/server/monitoring/ce/RecentTasksDurationTaskTest.java
+++ b/server/sonar-webserver-monitoring/src/test/java/org/sonar/server/monitoring/ce/RecentTasksDurationTaskTest.java
@@ -54,7 +54,7 @@ public class RecentTasksDurationTaskTest {
when(dbClient.ceActivityDao()).thenReturn(ceActivityDao);
when(dbClient.componentDao()).thenReturn(componentDao);
ComponentDto componentDto = new ComponentDto();
- componentDto.setDbKey("key");
+ componentDto.setKey("key");
}
@Test
@@ -116,7 +116,7 @@ public class RecentTasksDurationTaskTest {
for(int i=0; i<5; i++) {
ComponentDto component = new ComponentDto();
component.setUuid(i + "");
- component.setDbKey(i + "");
+ component.setKey(i + "");
componentDtos.add(component);
}
return componentDtos;