]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3755 Fix issues param when searching by issues
authorJulien Lancelot <julien.lancelot@gmail.com>
Thu, 23 May 2013 08:52:04 +0000 (10:52 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Thu, 23 May 2013 08:52:04 +0000 (10:52 +0200)
sonar-server/src/main/java/org/sonar/server/issue/PublicRubyIssueService.java
sonar-server/src/test/java/org/sonar/server/issue/PublicRubyIssueServiceTest.java

index f9ffe8071f961d724ef85319c2ba8b9683cf94f7..0b8909dd1d00b48120f9b1b0206d22bd94cff48e 100644 (file)
@@ -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")));
index 17c2a5262b27dc2ece84a1addfacdafeb0ba727d..d85d8102b154cc050e4198ec9ad2e26104424ecc 100644 (file)
@@ -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"));