summaryrefslogtreecommitdiff
path: root/plugins/tasks/tasks-tests/test
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2013-04-24 10:43:41 -0700
committerTor Norbye <tnorbye@google.com>2013-04-24 10:43:41 -0700
commitb17587c84879dd2ea42495f1fbdadbc806b9475b (patch)
treeb4d9014f69cb8289627ddc75339a6b0b3fe1bc5e /plugins/tasks/tasks-tests/test
parentb569bc6aa78f6eacf72e8b90622d300e1a9db25f (diff)
downloadidea-b17587c84879dd2ea42495f1fbdadbc806b9475b.tar.gz
Snapshot e242282deb41c328afbe971fc167e47ddfb26df9 from master branch of git://git.jetbrains.org/idea/community.git
Change-Id: Ifdc1818cde7b63f6d7bf42801f18c7f1557b8d85
Diffstat (limited to 'plugins/tasks/tasks-tests/test')
-rw-r--r--plugins/tasks/tasks-tests/test/com/intellij/tasks/integration/JiraIntegrationTest.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/tasks/tasks-tests/test/com/intellij/tasks/integration/JiraIntegrationTest.java b/plugins/tasks/tasks-tests/test/com/intellij/tasks/integration/JiraIntegrationTest.java
index 98fa5568c891..a03906966b01 100644
--- a/plugins/tasks/tasks-tests/test/com/intellij/tasks/integration/JiraIntegrationTest.java
+++ b/plugins/tasks/tasks-tests/test/com/intellij/tasks/integration/JiraIntegrationTest.java
@@ -38,6 +38,14 @@ public class JiraIntegrationTest extends TaskManagerTestCase {
assertFalse(issues[0].isClosed());
}
+ public void testLogin() throws Exception {
+ myRepository.setUsername("german");
+ myRepository.setUsername("wrong password");
+ Exception exception = myRepository.createCancellableConnection().call();
+ assertNotNull(exception);
+ assertEquals(JiraRepository.LOGIN_FAILED_CHECK_YOUR_PERMISSIONS, exception.getMessage());
+ }
+
@Override
public void setUp() throws Exception {
super.setUp();