diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2013-04-19 13:39:23 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2013-04-19 13:50:58 +0200 |
commit | 7f8c6bc89dbc2f5a1792b17228b1a17b2c8483d6 (patch) | |
tree | 82db25d1945e42e1b11d274f8d8784feb957f731 /sonar-ws-client | |
parent | 455c2922640c42a504caf3e32beb38ba5c64905b (diff) | |
download | sonarqube-7f8c6bc89dbc2f5a1792b17228b1a17b2c8483d6.tar.gz sonarqube-7f8c6bc89dbc2f5a1792b17228b1a17b2c8483d6.zip |
SONAR-3755 rename Issue#message() to description()
Diffstat (limited to 'sonar-ws-client')
7 files changed, 8 insertions, 8 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/Issue.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/Issue.java index cc6314d18d5..643db13a746 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/Issue.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/Issue.java @@ -151,7 +151,7 @@ public class Issue extends Model { return this; } - public String getAssigneeLogin() { + public String getAssignee() { return assigneeLogin; } diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/IssueQuery.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/IssueQuery.java index e4d9fc44b59..414b21dc7f1 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/IssueQuery.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/IssueQuery.java @@ -182,7 +182,7 @@ public final class IssueQuery extends Query<Issue> { appendUrlParameter(url, "componentRoots", componentRoots); appendUrlParameter(url, "rules", rules); appendUrlParameter(url, "userLogins", userLogins); - appendUrlParameter(url, "assigneeLogins", assigneeLogins); + appendUrlParameter(url, "assignees", assigneeLogins); appendUrlParameter(url, "createdAfter", createdAfter); appendUrlParameter(url, "createdBefore", createdBefore); appendUrlParameter(url, "limit", limit); diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/IssueUnmarshaller.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/IssueUnmarshaller.java index d3424d7dcfc..73f68474d0c 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/IssueUnmarshaller.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/IssueUnmarshaller.java @@ -40,7 +40,7 @@ public class IssueUnmarshaller extends AbstractUnmarshaller<Issue> { .setStatus(utils.getString(json, "status")) .setResolution(utils.getString(json, "resolution")) .setUserLogin(utils.getString(json, "userLogin")) - .setAssigneeLogin(utils.getString(json, "assigneeLogin")) + .setAssigneeLogin(utils.getString(json, "assignee")) .setCreatedAt(utils.getDateTime(json, "createdAt")) .setUpdatedAt(utils.getDateTime(json, "updatedAt")) .setClosedAt(utils.getDateTime(json, "closedAt")); diff --git a/sonar-ws-client/src/test/java/org/sonar/wsclient/services/IssueQueryTest.java b/sonar-ws-client/src/test/java/org/sonar/wsclient/services/IssueQueryTest.java index 3489cbf1baf..c0d48cc3a7c 100644 --- a/sonar-ws-client/src/test/java/org/sonar/wsclient/services/IssueQueryTest.java +++ b/sonar-ws-client/src/test/java/org/sonar/wsclient/services/IssueQueryTest.java @@ -50,7 +50,7 @@ public class IssueQueryTest extends QueryTestCase { ; assertThat(query.getUrl()).isEqualTo("/api/issues/search?keys=ABCDE,FGHIJ&severities=BLOCKER,INFO&statuses=OPEN,CLOSED&" + "resolutions=resolution1,resolution2&components=component1,component2&componentRoots=componentRoot1,componentRoot2&rules=squid%3AAvoidCycle&" + - "userLogins=userLogin1,userLogin2&assigneeLogins=arthur,perceval&limit=1&"); + "userLogins=userLogin1,userLogin2&assignees=arthur,perceval&limit=1&"); } @Test diff --git a/sonar-ws-client/src/test/java/org/sonar/wsclient/unmarshallers/IssueUnmarshallerTest.java b/sonar-ws-client/src/test/java/org/sonar/wsclient/unmarshallers/IssueUnmarshallerTest.java index 336393bb924..315acb773b8 100644 --- a/sonar-ws-client/src/test/java/org/sonar/wsclient/unmarshallers/IssueUnmarshallerTest.java +++ b/sonar-ws-client/src/test/java/org/sonar/wsclient/unmarshallers/IssueUnmarshallerTest.java @@ -50,7 +50,7 @@ public class IssueUnmarshallerTest extends UnmarshallerTestCase { assertThat(issue.getStatus()).isEqualTo("OPEN"); assertThat(issue.getResolution()).isEqualTo("FIXED"); assertThat(issue.getUserLogin()).isEqualTo("admin"); - assertThat(issue.getAssigneeLogin()).isEqualTo("admin"); + assertThat(issue.getAssignee()).isEqualTo("admin"); assertThat(issue.getCreatedAt()).isNotNull(); assertThat(issue.getUpdatedAt()).isNotNull(); assertThat(issue.getClosedAt()).isNull(); diff --git a/sonar-ws-client/src/test/resources/issues/all_issues.json b/sonar-ws-client/src/test/resources/issues/all_issues.json index 05ff7acc388..fa695a66146 100644 --- a/sonar-ws-client/src/test/resources/issues/all_issues.json +++ b/sonar-ws-client/src/test/resources/issues/all_issues.json @@ -12,7 +12,7 @@ "status": "OPEN", "resolution": "FIXED", "userLogin": "admin", - "assigneeLogin": "admin", + "assignee": "admin", "createdAt": "2013-04-10T18:21:15+0200", "updatedAt": "2013-04-10T18:21:15+0200", "closedAt": null @@ -30,7 +30,7 @@ "status": "OPEN", "resolution": null, "userLogin": null, - "assigneeLogin": null, + "assignee": null, "createdAt": "2013-04-10T18:21:15+0200", "updatedAt": "2013-04-10T18:21:15+0200", "closedAt": null diff --git a/sonar-ws-client/src/test/resources/issues/single_issue.json b/sonar-ws-client/src/test/resources/issues/single_issue.json index 113e1e72fbd..4e6b5abc168 100644 --- a/sonar-ws-client/src/test/resources/issues/single_issue.json +++ b/sonar-ws-client/src/test/resources/issues/single_issue.json @@ -12,7 +12,7 @@ "status": "OPEN", "resolution": "FIXED", "userLogin": "admin", - "assigneeLogin": "admin", + "assignee": "admin", "createdAt": "2013-04-10T18:21:15+0200", "updatedAt": "2013-04-10T18:21:15+0200", "closedAt": null |