mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 05:22:22 +00:00
bug fix. handle name escaping like other reader/writers
This commit is contained in:
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 {}
|
||||
}
|
||||
Reference in new issue
Block a user