Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2011-10-14 09:04:40 +0000
committerSteffen Pingel2011-10-14 09:04:40 +0000
commita0863f60ffb7e98ad3dd9f654538b0dd6b7a053e (patch)
tree9d517b2695d13a5ab48b17235b2ea855e6cffaa2 /org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn
parent406e77192a6aac6e9df7f0437f09b8f9475be5ab (diff)
downloadorg.eclipse.mylyn.tasks-a0863f60ffb7e98ad3dd9f654538b0dd6b7a053e.tar.gz
org.eclipse.mylyn.tasks-a0863f60ffb7e98ad3dd9f654538b0dd6b7a053e.tar.xz
org.eclipse.mylyn.tasks-a0863f60ffb7e98ad3dd9f654538b0dd6b7a053e.zip
RESOLVED - bug 162094: fix tests on Trac 0.10
https://bugs.eclipse.org/bugs/show_bug.cgi?id=162094
Diffstat (limited to 'org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn')
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/client/TracClientTest.java16
1 files changed, 13 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/client/TracClientTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/client/TracClientTest.java
index fb11a4c3f..863f39e33 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/client/TracClientTest.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/client/TracClientTest.java
@@ -27,6 +27,7 @@ import org.eclipse.mylyn.internal.trac.core.client.ITracClient.Version;
import org.eclipse.mylyn.internal.trac.core.client.TracException;
import org.eclipse.mylyn.internal.trac.core.client.TracLoginException;
import org.eclipse.mylyn.internal.trac.core.client.TracPermissionDeniedException;
+import org.eclipse.mylyn.internal.trac.core.client.TracRemoteException;
import org.eclipse.mylyn.internal.trac.core.model.TracSearch;
import org.eclipse.mylyn.internal.trac.core.model.TracTicket;
import org.eclipse.mylyn.internal.trac.core.model.TracTicket.Key;
@@ -172,9 +173,18 @@ public class TracClientTest extends TestCase {
search.addFilter("milestone", "mile&stone");
search.setOrderBy("id");
List<TracTicket> result = new ArrayList<TracTicket>();
- client.search(search, result, null);
- assertEquals(1, result.size());
- TracTestUtil.assertTicketEquals(tickets.get(7), result.get(0));
+ try {
+ client.search(search, result, null);
+ assertEquals(1, result.size());
+ TracTestUtil.assertTicketEquals(tickets.get(7), result.get(0));
+ } catch (TracRemoteException e) {
+ if ("'Query filter requires field and constraints separated by a \"=\"' while executing 'ticket.query()'".equals(e.getMessage())
+ && fixture.getVersion().equals("0.10")) {
+ // ignore upstream problem, see bug 162094
+ } else {
+ throw e;
+ }
+ }
}
public void testStatusClosed() throws Exception {

Back to the top