]> source.dussan.org Git - sonarqube.git/commitdiff
NO-JIRA - Fix dbKey not existing anymore
authorAntoine Vinot <antoine.vinot@sonarsource.com>
Thu, 13 Oct 2022 08:01:29 +0000 (10:01 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 13 Oct 2022 20:03:18 +0000 (20:03 +0000)
server/sonar-webserver-webapi/src/test/java/org/sonar/server/qualityprofile/ws/ProjectsActionTest.java

index 6dde162782bb490f6a652ea041a6639ae66483e5..ca1393e1246c8e184afa6163789da24b755468c9 100644 (file)
@@ -247,7 +247,7 @@ public class ProjectsActionTest {
     ProjectDto project2 = db.components().insertPublicProjectDto(p -> p.setName("Project Two"));
     ProjectDto project3 = db.components().insertPublicProjectDto(p -> p.setName("Project Three"));
     db.components().insertPublicProjectDto(p -> p.setName("Project Four"));
-    ProjectDto project5 = db.components().insertPublicProjectDto(p -> p.setDbKey("Project the fifth"));
+    ProjectDto project5 = db.components().insertPublicProjectDto(p -> p.setKey("Project the fifth"));
 
     QProfileDto qualityProfile = db.qualityProfiles().insert();
     associateProjectsWithProfile(qualityProfile, project1, project2);