diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-05-06 19:16:23 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-05-06 19:16:23 +0200 |
commit | 95ee23dc7e4ee3654c2b925ef056408d76bc0171 (patch) | |
tree | 177914e608d9eb9d273829af445bd482d1c2d0f9 /sonar-ws-client/src | |
parent | 05ff982358f72436f20d8d53e2f66efe16c06987 (diff) | |
download | sonarqube-95ee23dc7e4ee3654c2b925ef056408d76bc0171.tar.gz sonarqube-95ee23dc7e4ee3654c2b925ef056408d76bc0171.zip |
SONAR-3755 Add planned parameter on IssueQuery for Issues code viewer
Diffstat (limited to 'sonar-ws-client/src')
-rw-r--r-- | sonar-ws-client/src/main/java/org/sonar/wsclient/issue/IssueQuery.java | 5 | ||||
-rw-r--r-- | sonar-ws-client/src/test/java/org/sonar/wsclient/issue/IssueQueryTest.java | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/IssueQuery.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/IssueQuery.java index 5589f5c7ee7..011fb506db6 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/IssueQuery.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/IssueQuery.java @@ -85,6 +85,11 @@ public class IssueQuery { return this; } + public IssueQuery planned(Boolean planned) { + params.put("planned", planned); + return this; + } + public IssueQuery createdAfter(Date d) { params.put("createdAfter", EncodingUtils.toQueryParam(d, true)); return this; diff --git a/sonar-ws-client/src/test/java/org/sonar/wsclient/issue/IssueQueryTest.java b/sonar-ws-client/src/test/java/org/sonar/wsclient/issue/IssueQueryTest.java index f6dbdf3d84f..7daca96782d 100644 --- a/sonar-ws-client/src/test/java/org/sonar/wsclient/issue/IssueQueryTest.java +++ b/sonar-ws-client/src/test/java/org/sonar/wsclient/issue/IssueQueryTest.java @@ -37,6 +37,7 @@ public class IssueQueryTest { .issues("ABCDE", "FGHIJ") .assignees("arthur", "perceval") .assigned(true) + .planned(true) .components("Action.java", "Filter.java") .componentRoots("struts") .resolutions("FIXED", "FALSE-POSITIVE") @@ -49,10 +50,11 @@ public class IssueQueryTest { .pageSize(5) .pageIndex(4); - assertThat(query.urlParams()).hasSize(14); + assertThat(query.urlParams()).hasSize(15); assertThat(query.urlParams()).includes(entry("issues", "ABCDE,FGHIJ")); assertThat(query.urlParams()).includes(entry("assignees", "arthur,perceval")); assertThat(query.urlParams()).includes(entry("assigned", true)); + assertThat(query.urlParams()).includes(entry("planned", true)); assertThat(query.urlParams()).includes(entry("components", "Action.java,Filter.java")); assertThat(query.urlParams()).includes(entry("componentRoots", "struts")); assertThat(query.urlParams()).includes(entry("resolutions", "FIXED,FALSE-POSITIVE")); |