Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-01-06 02:41:11 +0000
committerspingel2010-01-06 02:41:11 +0000
commite57b26dde67a9e39e6fca80ef90d7537f8a17fca (patch)
tree3310330ec0b5a8a8f3307529f7470e6e2f911237 /org.eclipse.mylyn.trac.tests/src
parent028b5ed18bf8763d074cf35a5e14e2b72e2edb02 (diff)
downloadorg.eclipse.mylyn.tasks-e57b26dde67a9e39e6fca80ef90d7537f8a17fca.tar.gz
org.eclipse.mylyn.tasks-e57b26dde67a9e39e6fca80ef90d7537f8a17fca.tar.xz
org.eclipse.mylyn.tasks-e57b26dde67a9e39e6fca80ef90d7537f8a17fca.zip
RESOLVED - bug 296894: [releng] fix failing tests for 3.4
https://bugs.eclipse.org/bugs/show_bug.cgi?id=296894
Diffstat (limited to 'org.eclipse.mylyn.trac.tests/src')
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracRepositoryConnectorTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracRepositoryConnectorTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracRepositoryConnectorTest.java
index 84880df9a..1e08e89c7 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracRepositoryConnectorTest.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracRepositoryConnectorTest.java
@@ -258,6 +258,9 @@ public class TracRepositoryConnectorTest extends TestCase {
}
public void testUpdateTaskFromTaskDataSummaryOnly() throws Exception {
+ // XXX avoid failing test due to stale client
+ connector.getClientManager().clearClients();
+
TracTicket ticket = new TracTicket(456);
ticket.putBuiltinValue(Key.SUMMARY, "mysummary");
@@ -271,6 +274,7 @@ public class TracRepositoryConnectorTest extends TestCase {
assertEquals("456", task.getTaskKey());
assertEquals("mysummary", task.getSummary());
assertEquals("P3", task.getPriority());
+ // depending on the access mode createTaskDataFromTicket() creates different default attributes
if (client.getAccessMode() == Version.TRAC_0_9) {
assertEquals(AbstractTask.DEFAULT_TASK_KIND, task.getTaskKind());
} else {

Back to the top