From 2586dc9ca82d74cdde72c183298b8ba76fc18d91 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Tue, 8 Nov 2016 17:22:46 +0100 Subject: [PATCH] SONAR-8120 Fix project names to stabilize UT --- .../java/org/sonar/server/measure/ws/SearchActionTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/sonar-server/src/test/java/org/sonar/server/measure/ws/SearchActionTest.java b/server/sonar-server/src/test/java/org/sonar/server/measure/ws/SearchActionTest.java index ec2321edd53..982c2bea144 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/measure/ws/SearchActionTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/measure/ws/SearchActionTest.java @@ -368,9 +368,9 @@ public class SearchActionTest { private List insertJsonExampleData() { List 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) -- 2.39.5