mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-126470 Filed 'description' in Redmine issues may be missing
This commit is contained in:
@@ -19,7 +19,7 @@ public class RedmineIssue {
|
||||
private IssueStatus status;
|
||||
@Mandatory
|
||||
private String subject;
|
||||
@Mandatory
|
||||
// IDEA-126470 May be missing if issue was not created via web-interface
|
||||
private String description;
|
||||
@SerializedName("done_ratio")
|
||||
private int doneRatio;
|
||||
@@ -45,7 +45,7 @@ public class RedmineIssue {
|
||||
return subject;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Nullable
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
+10
-2
@@ -21,11 +21,11 @@ public class RedmineIntegrationTest extends TaskManagerTestCase {
|
||||
|
||||
// with closed issues
|
||||
Task[] found = myRepository.getIssues(null, 0, 25, true);
|
||||
assertEquals(4, found.length);
|
||||
assertEquals(5, found.length);
|
||||
|
||||
// without closed issues
|
||||
found = myRepository.getIssues(null, 0, 25, false);
|
||||
assertEquals(3, found.length);
|
||||
assertEquals(4, found.length);
|
||||
|
||||
// unique summary
|
||||
//found = myRepository.getIssues("baz", 0, 25, true);
|
||||
@@ -72,6 +72,14 @@ public class RedmineIntegrationTest extends TaskManagerTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
// IDEA-126470
|
||||
public void testIssueWithMissingDescription() throws Exception {
|
||||
final Task issue = myRepository.findTask("8");
|
||||
assertNotNull(issue);
|
||||
assertNull(issue.getDescription());
|
||||
assertEquals(issue.getSummary(), "Artificial issue with no description created via REST API");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setUp() throws Exception {
|
||||
super.setUp();
|
||||
|
||||
Reference in New Issue
Block a user