diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2016-11-08 17:22:46 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2016-11-08 17:22:46 +0100 |
commit | 2586dc9ca82d74cdde72c183298b8ba76fc18d91 (patch) | |
tree | 1cab249b531d27bbe67ee2aa5886aab9b748bf92 /server | |
parent | cbce11b666ab221d1c2da35ef5082e18bf8fd573 (diff) | |
download | sonarqube-2586dc9ca82d74cdde72c183298b8ba76fc18d91.tar.gz sonarqube-2586dc9ca82d74cdde72c183298b8ba76fc18d91.zip |
SONAR-8120 Fix project names to stabilize UT
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-server/src/test/java/org/sonar/server/measure/ws/SearchActionTest.java | 6 |
1 files 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<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) |