From: Jean-Baptiste Lievremont Date: Fri, 28 Nov 2014 16:29:46 +0000 (+0100) Subject: Revert "SONAR-5742 Add ignorePaging parameter handle to WS client (for IT)" X-Git-Tag: 5.0-RC1~161 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4253a180020a37877574d6c27e2e42311a428d62;p=sonarqube.git Revert "SONAR-5742 Add ignorePaging parameter handle to WS client (for IT)" This reverts commit 58dd4353773af1c010facbcc05c17cd1cac5b9be. --- diff --git a/server/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/IssueQuery.java b/server/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/IssueQuery.java index a5d1817b570..304fee715b9 100644 --- a/server/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/IssueQuery.java +++ b/server/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/IssueQuery.java @@ -151,15 +151,6 @@ public class IssueQuery { return this; } - /** - * Only valid with one component, do not use in the general case - * @since 5.0 - */ - public IssueQuery ignorePaging(boolean ignorePaging) { - params.put("ignorePaging", ignorePaging); - return this; - } - private IssueQuery addParam(String key, String[] values) { if (values != null) { params.put(key, EncodingUtils.toQueryParam(values)); diff --git a/server/sonar-ws-client/src/test/java/org/sonar/wsclient/issue/IssueQueryTest.java b/server/sonar-ws-client/src/test/java/org/sonar/wsclient/issue/IssueQueryTest.java index ae1aadd3704..c4d0e209d14 100644 --- a/server/sonar-ws-client/src/test/java/org/sonar/wsclient/issue/IssueQueryTest.java +++ b/server/sonar-ws-client/src/test/java/org/sonar/wsclient/issue/IssueQueryTest.java @@ -59,10 +59,9 @@ public class IssueQueryTest { .sort("ASSIGNEE") .asc(false) .pageSize(5) - .pageIndex(4) - .ignorePaging(true); + .pageIndex(4); - assertThat(query.urlParams()).hasSize(23); + assertThat(query.urlParams()).hasSize(22); assertThat(query.urlParams()).includes(entry("issues", "ABCDE,FGHIJ")); assertThat(query.urlParams()).includes(entry("assignees", "arthur,perceval")); assertThat(query.urlParams()).includes(entry("assigned", true)); @@ -85,7 +84,6 @@ public class IssueQueryTest { assertThat(query.urlParams()).includes(entry("asc", false)); assertThat(query.urlParams()).includes(entry("pageSize", 5)); assertThat(query.urlParams()).includes(entry("pageIndex", 4)); - assertThat(query.urlParams()).includes(entry("ignorePaging", true)); } @Test