Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2006-09-08 10:06:52 -0400
committerspingel2006-09-08 10:06:52 -0400
commitc3c3854f4cb13f9dffbefe18ff70b6163534eea2 (patch)
tree957d7d3f072c5c44b61b538413a2f9373e742f4b /org.eclipse.mylyn.trac.tests
parent500956cd7107f8483fc6be69b7f324cda669dbf3 (diff)
downloadorg.eclipse.mylyn.tasks-c3c3854f4cb13f9dffbefe18ff70b6163534eea2.tar.gz
org.eclipse.mylyn.tasks-c3c3854f4cb13f9dffbefe18ff70b6163534eea2.tar.xz
org.eclipse.mylyn.tasks-c3c3854f4cb13f9dffbefe18ff70b6163534eea2.zip
Progress on: 156271: Error on "Add Existing Task" if not authenticated
https://bugs.eclipse.org/bugs/show_bug.cgi?id=156271
Diffstat (limited to 'org.eclipse.mylyn.trac.tests')
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryConnectorTest.java20
1 files changed, 13 insertions, 7 deletions
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryConnectorTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryConnectorTest.java
index a22812178..f78bce72d 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryConnectorTest.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracRepositoryConnectorTest.java
@@ -115,17 +115,17 @@ public class TracRepositoryConnectorTest extends TestCase {
assertEquals(null, connector.getRepositoryUrlFromTaskUrl("http://host/repo/ticket-2342"));
}
- public void testCreateTaskFromExistingKeyXmlRpc_010() throws CoreException {
+ public void testCreateTaskFromExistingKeyXmlRpc010() throws CoreException {
init(Constants.TEST_TRAC_010_URL, Version.XML_RPC);
createTaskFromExistingKey();
}
- public void testCreateTaskFromExistingKeyTrac09_010() throws CoreException {
+ public void testCreateTaskFromExistingKeyTracWeb010() throws CoreException {
init(Constants.TEST_TRAC_010_URL, Version.TRAC_0_9);
createTaskFromExistingKey();
}
- public void testCreateTaskFromExistingKeyTrac09_096() throws CoreException {
+ public void testCreateTaskFromExistingKeyTracWeb096() throws CoreException {
init(Constants.TEST_TRAC_096_URL, Version.TRAC_0_9);
createTaskFromExistingKey();
}
@@ -138,11 +138,17 @@ public class TracRepositoryConnectorTest extends TestCase {
assertTrue(task.getDescription().contains("summary1"));
assertEquals(repository.getUrl() + ITracClient.TICKET_URL + id, task.getUrl());
- task = connector.createTaskFromExistingKey(repository, "does not exist", null);
- assertNull(task);
+ try {
+ task = connector.createTaskFromExistingKey(repository, "does not exist", null);
+ fail("Expected CoreException");
+ } catch (CoreException e) {
+ }
- task = connector.createTaskFromExistingKey(repository, Integer.MAX_VALUE + "", null);
- assertNull(task);
+ try {
+ task = connector.createTaskFromExistingKey(repository, Integer.MAX_VALUE + "", null);
+ fail("Expected CoreException");
+ } catch (CoreException e) {
+ }
}
public void testClientManagerChangeTaskRepositorySettings() throws MalformedURLException {

Back to the top