From 4253a180020a37877574d6c27e2e42311a428d62 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lievremont Date: Fri, 28 Nov 2014 17:29:46 +0100 Subject: [PATCH] Revert "SONAR-5742 Add ignorePaging parameter handle to WS client (for IT)" This reverts commit 58dd4353773af1c010facbcc05c17cd1cac5b9be. --- .../main/java/org/sonar/wsclient/issue/IssueQuery.java | 9 --------- .../java/org/sonar/wsclient/issue/IssueQueryTest.java | 6 ++---- 2 files changed, 2 insertions(+), 13 deletions(-) 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 -- 2.39.5