return JsonUtils.getString(json, "severity");
}
- /**
- * TODO to be removed
- */
- @CheckForNull
- public String description() {
- return JsonUtils.getString(json, "message");
- }
-
@CheckForNull
public String message() {
return JsonUtils.getString(json, "message");
return JsonUtils.getString(json, "resolution");
}
- /**
- * Login of the user who created the manual issue, else null.
- * TODO to be removed
- */
- @CheckForNull
- public String userLogin() {
- return JsonUtils.getString(json, "reporter");
- }
-
@CheckForNull
public String reporter() {
return JsonUtils.getString(json, "reporter");
return addParam("actionPlans", s);
}
- /**
- * TODO To be removed
- */
- public IssueQuery userLogins(String... s) {
- return addParam("reporters", s);
- }
-
public IssueQuery reporters(String... s) {
return addParam("reporters", s);
}
assertThat(first.assignee()).isEqualTo("karadoc");
assertThat(first.message()).isEqualTo("the message");
assertThat(first.effortToFix()).isEqualTo(4.2);
- assertThat(first.userLogin()).isEqualTo("perceval");
+ assertThat(first.reporter()).isEqualTo("perceval");
assertThat(first.creationDate()).isNotNull();
assertThat(first.updateDate()).isNotNull();
assertThat(first.closeDate()).isNotNull();
assertThat(second.key()).isEqualTo("FGHIJ");
assertThat(second.line()).isNull();
assertThat(second.effortToFix()).isNull();
- assertThat(second.description()).isNull();
+ assertThat(second.reporter()).isNull();
assertThat(second.attribute("JIRA")).isNull();
assertThat(second.attributes()).isEmpty();
assertThat(second.comments()).isEmpty();