mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 05:22:22 +00:00
bug fix when there's no children nor value
This commit is contained in:
1 parent
9a59ada8ea
commit
c75caf937c
2 files changed
+8
-1
No files matched your search
@@ -80,4 +80,11 @@ public class XStreamDOMTest extends TestCase {
|
||||
assertEquals(IOUtils.toString(getClass().getResourceAsStream("XStreamDOMTest.data1.xml")).trim(),xml.trim());
|
||||
}
|
||||
|
||||
public void testNoChild() {
|
||||
String[] in = new String[0];
|
||||
XStreamDOM dom = XStreamDOM.from(xs, in);
|
||||
System.out.println(xs.toXML(dom));
|
||||
String[] out = dom.unmarshal(xs);
|
||||
assertEquals(in.length, out.length);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user