]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8120 Fix project names to stabilize UT
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Tue, 8 Nov 2016 16:22:46 +0000 (17:22 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Tue, 8 Nov 2016 16:22:46 +0000 (17:22 +0100)
server/sonar-server/src/test/java/org/sonar/server/measure/ws/SearchActionTest.java

index ec2321edd539b55145eb79292ecdb26c212e03c6..982c2bea1446fd0ed21c2dc02ba9b9c851d78f9e 100644 (file)
@@ -368,9 +368,9 @@ public class SearchActionTest {
 
   private List<String> insertJsonExampleData() {
     List<String> projectKeys = new ArrayList<>();
-    ComponentDto project1 = newProjectDto().setKey("MY_PROJECT_1");
-    ComponentDto project2 = newProjectDto().setKey("MY_PROJECT_2");
-    ComponentDto project3 = newProjectDto().setKey("MY_PROJECT_3");
+    ComponentDto project1 = newProjectDto().setKey("MY_PROJECT_1").setName("Project 1");
+    ComponentDto project2 = newProjectDto().setKey("MY_PROJECT_2").setName("Project 2");
+    ComponentDto project3 = newProjectDto().setKey("MY_PROJECT_3").setName("Project 3");
     projectKeys.addAll(asList(project1.key(), project2.key(), project3.key()));
     componentDb.insertComponents(project1, project2, project3);
     SnapshotDto projectSnapshot1 = dbClient.snapshotDao().insert(dbSession, newAnalysis(project1)