diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-05-23 10:52:04 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-05-23 10:52:04 +0200 |
commit | 208f3c14209dffd20fa3b9a4c8cb232e7d95a20c (patch) | |
tree | 9dc15c74bfccbd02ccfe8a7a8ec3d9a33af20270 /sonar-server | |
parent | 49523b748eea547e9cf55d37790446cc97153f0f (diff) | |
download | sonarqube-208f3c14209dffd20fa3b9a4c8cb232e7d95a20c.tar.gz sonarqube-208f3c14209dffd20fa3b9a4c8cb232e7d95a20c.zip |
SONAR-3755 Fix issues param when searching by issues
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/java/org/sonar/server/issue/PublicRubyIssueService.java | 2 | ||||
-rw-r--r-- | sonar-server/src/test/java/org/sonar/server/issue/PublicRubyIssueServiceTest.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sonar-server/src/main/java/org/sonar/server/issue/PublicRubyIssueService.java b/sonar-server/src/main/java/org/sonar/server/issue/PublicRubyIssueService.java index f9ffe8071f9..0b8909dd1d0 100644 --- a/sonar-server/src/main/java/org/sonar/server/issue/PublicRubyIssueService.java +++ b/sonar-server/src/main/java/org/sonar/server/issue/PublicRubyIssueService.java @@ -66,7 +66,7 @@ public class PublicRubyIssueService implements RubyIssueService { IssueQuery toQuery(Map<String, Object> props) { IssueQuery.Builder builder = IssueQuery.builder(); builder.requiredRole(UserRole.CODEVIEWER); - builder.issueKeys(RubyUtils.toStrings(props.get("issueKeys"))); + builder.issueKeys(RubyUtils.toStrings(props.get("issues"))); builder.severities(RubyUtils.toStrings(props.get("severities"))); builder.statuses(RubyUtils.toStrings(props.get("statuses"))); builder.resolutions(RubyUtils.toStrings(props.get("resolutions"))); diff --git a/sonar-server/src/test/java/org/sonar/server/issue/PublicRubyIssueServiceTest.java b/sonar-server/src/test/java/org/sonar/server/issue/PublicRubyIssueServiceTest.java index 17c2a5262b2..d85d8102b15 100644 --- a/sonar-server/src/test/java/org/sonar/server/issue/PublicRubyIssueServiceTest.java +++ b/sonar-server/src/test/java/org/sonar/server/issue/PublicRubyIssueServiceTest.java @@ -45,7 +45,7 @@ public class PublicRubyIssueServiceTest { @Test public void find() throws Exception { - facade.find(ImmutableMap.<String, Object>of("issueKeys", Lists.newArrayList("ABCDE"))); + facade.find(ImmutableMap.<String, Object>of("issues", Lists.newArrayList("ABCDE"))); verify(finder).find(argThat(new ArgumentMatcher<IssueQuery>() { @Override public boolean matches(Object o) { @@ -58,7 +58,7 @@ public class PublicRubyIssueServiceTest { @Test public void should_create_query_from_parameters() { Map<String, Object> map = newHashMap(); - map.put("issueKeys", newArrayList("ABCDE1234")); + map.put("issues", newArrayList("ABCDE1234")); map.put("severities", newArrayList("MAJOR", "MINOR")); map.put("statuses", newArrayList("CLOSED")); map.put("resolutions", newArrayList("FALSE-POSITIVE")); |