diff options
Diffstat (limited to 'plugins/tasks/tasks-tests/test/com/intellij/tasks/integration/RedmineIntegrationTest.java')
-rw-r--r-- | plugins/tasks/tasks-tests/test/com/intellij/tasks/integration/RedmineIntegrationTest.java | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/plugins/tasks/tasks-tests/test/com/intellij/tasks/integration/RedmineIntegrationTest.java b/plugins/tasks/tasks-tests/test/com/intellij/tasks/integration/RedmineIntegrationTest.java index fa4d40dc2750..a14f48a4258e 100644 --- a/plugins/tasks/tasks-tests/test/com/intellij/tasks/integration/RedmineIntegrationTest.java +++ b/plugins/tasks/tasks-tests/test/com/intellij/tasks/integration/RedmineIntegrationTest.java @@ -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); @@ -64,14 +64,23 @@ public class RedmineIntegrationTest extends TaskManagerTestCase { public void testCredentialsCheck() throws Exception { myRepository.setPassword("wrong-password"); try { - myRepository.testConnection(); - fail("testConnection() should fails, when wrong credentials specified"); + //noinspection ConstantConditions + final Exception exception = myRepository.createCancellableConnection().call(); + assertNotNull("Test connection must fail when wrong credentials specified", exception); } catch (Exception e) { assertEquals(TaskBundle.message("failure.login"), e.getMessage()); } } + // 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. Do not update it!"); + } + @Override public void setUp() throws Exception { super.setUp(); |