diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-05-14 11:57:15 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-05-14 11:57:15 +0200 |
commit | 203a2b8addf29efe6b611bdafb50835e15ce164c (patch) | |
tree | 571b1c01bf8bbbf58ada81d913544c561d886464 /sonar-ws-client | |
parent | 4e32d4ccc1f213825f4592fa58b79f9423eae700 (diff) | |
download | sonarqube-203a2b8addf29efe6b611bdafb50835e15ce164c.tar.gz sonarqube-203a2b8addf29efe6b611bdafb50835e15ce164c.zip |
SONAR-4282 renamed openIssues by unresolvedIssues
Diffstat (limited to 'sonar-ws-client')
-rw-r--r-- | sonar-ws-client/src/main/java/org/sonar/wsclient/issue/ActionPlan.java | 4 | ||||
-rw-r--r-- | sonar-ws-client/src/test/java/org/sonar/wsclient/issue/DefaultActionPlanClientTest.java | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/ActionPlan.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/ActionPlan.java index 84c03ac0589..d7c40630111 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/ActionPlan.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/ActionPlan.java @@ -87,8 +87,8 @@ public class ActionPlan { } @CheckForNull - public Integer openIssues() { - return JsonUtils.getInteger(json, "openIssues"); + public Integer unresolvedIssues() { + return JsonUtils.getInteger(json, "unresolvedIssues"); } } diff --git a/sonar-ws-client/src/test/java/org/sonar/wsclient/issue/DefaultActionPlanClientTest.java b/sonar-ws-client/src/test/java/org/sonar/wsclient/issue/DefaultActionPlanClientTest.java index 34fc84b3695..a9b29aa8370 100644 --- a/sonar-ws-client/src/test/java/org/sonar/wsclient/issue/DefaultActionPlanClientTest.java +++ b/sonar-ws-client/src/test/java/org/sonar/wsclient/issue/DefaultActionPlanClientTest.java @@ -44,8 +44,8 @@ public class DefaultActionPlanClientTest { "\"project\": \"com.sonarsource.it.samples:simple-sample\",\n" + "\"userLogin\": \"admin\",\n" + "\"deadLine\": \"2013-05-30T00:00:00+0200\",\n" + - "\"totalIssues\": 0,\n" + - "\"openIssues\": 0,\n" + + "\"totalIssues\": 3,\n" + + "\"unresolvedIssues\": 2,\n" + "\"createdAt\": \"2013-05-13T12:50:29+0200\",\n" + "\"updatedAt\": \"2013-05-13T12:50:44+0200\"}]}"); @@ -61,8 +61,8 @@ public class DefaultActionPlanClientTest { assertThat(actionPlan.status()).isEqualTo("CLOSED"); assertThat(actionPlan.userLogin()).isEqualTo("admin"); assertThat(actionPlan.deadLine()).isNotNull(); - assertThat(actionPlan.totalIssues()).isEqualTo(0); - assertThat(actionPlan.openIssues()).isEqualTo(0); + assertThat(actionPlan.totalIssues()).isEqualTo(3); + assertThat(actionPlan.unresolvedIssues()).isEqualTo(2); assertThat(actionPlan.createdAt()).isNotNull(); assertThat(actionPlan.updatedAt()).isNotNull(); } |