You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ga...@apache.org on 2005/01/25 07:52:39 UTC
cvs commit: ws-axis/java/test/encoding TestDeser.java
gawor 2005/01/24 22:52:39
Modified: java/test/encoding TestDeser.java
Log:
test for qname on the wire with whitespace
Revision Changes Path
1.49 +11 -0 ws-axis/java/test/encoding/TestDeser.java
Index: TestDeser.java
===================================================================
RCS file: /home/cvs/ws-axis/java/test/encoding/TestDeser.java,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -r1.48 -r1.49
--- TestDeser.java 8 Jul 2004 08:51:58 -0000 1.48
+++ TestDeser.java 25 Jan 2005 06:52:39 -0000 1.49
@@ -271,6 +271,17 @@
new Short((short)3));
}
+ public void testQName() throws Exception {
+ String ns = "http://test";
+ String local = "bar";
+
+ deserialize("<result xmlns:foo=\"" + ns + "\" xsi:type=\"xsd:QName\">foo:" + local + "</result>",
+ new QName(ns, local));
+
+ deserialize("<result xmlns:foo=\"" + ns + "\" xsi:type=\"xsd:QName\">\n foo:" + local + " \r\n </result>",
+ new QName(ns, local));
+ }
+
public void testArray() throws Exception {
Vector v = new Vector();
v.addElement("abc");