Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2008-06-23 02:52:07 +0000
committerspingel2008-06-23 02:52:07 +0000
commit4d1f851c8781abe4d28d7b4e420981320d648dec (patch)
treed3543c02594761dcf3a85293d02d1b9650bb47e3 /org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac
parentc89fd0885be6ec3db0e39a3393565a6694d6503b (diff)
downloadorg.eclipse.mylyn.tasks-4d1f851c8781abe4d28d7b4e420981320d648dec.tar.gz
org.eclipse.mylyn.tasks-4d1f851c8781abe4d28d7b4e420981320d648dec.tar.xz
org.eclipse.mylyn.tasks-4d1f851c8781abe4d28d7b4e420981320d648dec.zip
NEW - bug 238064: task list updated twice when partial results are returned
https://bugs.eclipse.org/bugs/show_bug.cgi?id=238064
Diffstat (limited to 'org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac')
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracTaskDataHandlerTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracTaskDataHandlerTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracTaskDataHandlerTest.java
index 030ff5c6b..8d47b30b8 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracTaskDataHandlerTest.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/TracTaskDataHandlerTest.java
@@ -74,7 +74,7 @@ public class TracTaskDataHandlerTest extends TestCase {
super.setUp();
data = TestFixture.init010();
connector = (TracRepositoryConnector) TasksUi.getRepositoryConnector(TracCorePlugin.CONNECTOR_KIND);
- taskDataHandler = (TracTaskDataHandler) connector.getTaskDataHandler();
+ taskDataHandler = connector.getTaskDataHandler();
}
protected void init(String url, Version version) {
@@ -234,7 +234,8 @@ public class TracTaskDataHandlerTest extends TestCase {
AbstractTaskAttachmentHandler attachmentHandler = connector.getTaskAttachmentHandler();
ITask task = TracTestUtil.createTask(repository, data.attachmentTicketId + "");
Date lastModified = task.getModificationDate();
- attachmentHandler.postContent(repository, task, new TextTaskAttachmentSource("abc"), null, null, null);
+ // XXX the test case fails when comment == null
+ attachmentHandler.postContent(repository, task, new TextTaskAttachmentSource("abc"), "comment", null, null);
task = TracTestUtil.createTask(repository, data.attachmentTicketId + "");
Date newLastModified = task.getModificationDate();

Back to the top