bug fix. handle name escaping like other reader/writers

This commit is contained in:
Kohsuke Kawaguchi committed 2012-06-22 17:41:30 -07:00
1 parent c75caf937c
commit 5d3d9d16ef
2 files changed
+14 -15

No files matched your search

@@ -87,4 +87,14 @@ public class XStreamDOMTest extends TestCase {
String[] out = dom.unmarshal(xs);
assertEquals(in.length, out.length);
}
public void testNameEscape() {
Object o = new Name_That_Gets_Escaped();
XStreamDOM dom = XStreamDOM.from(xs, o);
System.out.println(xs.toXML(dom));
Object out = dom.unmarshal(xs);
assertEquals(o.getClass(),out.getClass());
}
public static class Name_That_Gets_Escaped {}
}