Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-07-09 20:25:10 +0000
committerspingel2010-07-09 20:25:10 +0000
commit8e9e05a294f4d6f47156726fc4afb3c0778cda8d (patch)
treee01c6b90adc1cc41219c6b7213b9b3f4bd8503dd /org.eclipse.mylyn.trac.tests/src
parent9b6769c63a9b65d918a2d06bdc7e3aaf57dd7e72 (diff)
downloadorg.eclipse.mylyn.tasks-8e9e05a294f4d6f47156726fc4afb3c0778cda8d.tar.gz
org.eclipse.mylyn.tasks-8e9e05a294f4d6f47156726fc4afb3c0778cda8d.tar.xz
org.eclipse.mylyn.tasks-8e9e05a294f4d6f47156726fc4afb3c0778cda8d.zip
NEW - bug 253932: [upstream] submitting changes also sends unchanged fields possibly resetting them to old values
https://bugs.eclipse.org/bugs/show_bug.cgi?id=253932
Diffstat (limited to 'org.eclipse.mylyn.trac.tests/src')
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerXmlRpcTest.java6
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracTestUtil.java3
2 files changed, 9 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerXmlRpcTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerXmlRpcTest.java
index 05eb282ff..0303b66c7 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerXmlRpcTest.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerXmlRpcTest.java
@@ -412,6 +412,12 @@ public class TracTaskDataHandlerXmlRpcTest extends TestCase {
public void testPostTaskDataMidAirCollision() throws Exception {
TracTicket ticket = TracTestUtil.createTicket(client, "midAirCollision");
+ if (ticket.getValue(Key.TOKEN) == null) {
+ // repository does not have mid-air collision support
+ System.err.println("Skipping TracTaskDataHandler.testPostTaskDataMidAirCollision() due to lack of mid-air collision support on "
+ + repository.getRepositoryUrl());
+ return;
+ }
TaskData taskData = taskDataHandler.getTaskData(repository, ticket.getId() + "", new NullProgressMonitor());
TaskAttribute attribute = taskData.getRoot().getMappedAttribute(TaskAttribute.PRIORITY);
attribute.setValue("blocker");
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracTestUtil.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracTestUtil.java
index b42dcd4e0..7262d06da 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracTestUtil.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/TracTestUtil.java
@@ -105,6 +105,9 @@ public class TracTestUtil {
expected = expectedString.substring(0, i + 1) + "\u2026";
}
}
+ } else if (key.startsWith("_")) {
+ // ignore internal values
+ continue;
}
Assert.assertEquals("Values for key '" + key + "' did not match", expected, actual);
}

Back to the top