Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-03-09 23:48:44 +0000
committerspingel2010-03-09 23:48:44 +0000
commit425e1238e961e78e525f9fefa9b3a58c25072657 (patch)
tree0a7eceda00ebbf06103828efad5c5c0ebb934ee3 /org.eclipse.mylyn.trac.tests/src
parenta9827c493ad01337e5aa4d3565ded814cfb88fd9 (diff)
downloadorg.eclipse.mylyn.tasks-425e1238e961e78e525f9fefa9b3a58c25072657.tar.gz
org.eclipse.mylyn.tasks-425e1238e961e78e525f9fefa9b3a58c25072657.tar.xz
org.eclipse.mylyn.tasks-425e1238e961e78e525f9fefa9b3a58c25072657.zip
added test
Diffstat (limited to 'org.eclipse.mylyn.trac.tests/src')
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/client/TracXmlRpcClientTest.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/client/TracXmlRpcClientTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/client/TracXmlRpcClientTest.java
index 9b54429ce..986c0c8c0 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/client/TracXmlRpcClientTest.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/client/TracXmlRpcClientTest.java
@@ -22,6 +22,7 @@ import junit.framework.TestCase;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.mylyn.internal.trac.core.client.ITracClient;
+import org.eclipse.mylyn.internal.trac.core.client.TracException;
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.client.TracXmlRpcClient;
@@ -354,4 +355,15 @@ public class TracXmlRpcClientTest extends TestCase {
// TODO testing wiki.putPage()
}
+ public void testInvalidCharacters() throws Exception {
+ TracTicket ticket = TracTestUtil.createTicket(client, "invalid characters");
+ ticket.putBuiltinValue(Key.DESCRIPTION, "Control Character: \u0002");
+ try {
+ client.updateTicket(ticket, "set invalid characters in description", null);
+ fail("Expected TracException");
+ } catch (TracException e) {
+ // expected to cause parse error
+ }
+ }
+
}

Back to the top