1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
Testsuite: org.simpleframework.xml.stream.NodeWriterTest
Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.023 sec
------------- Standard Output ---------------
<root id="test" name="testRoot">
<child-of-root name="child of root">
<child-of-child-of-root>I am a child of the child-of-root element and a grand child of the root element</child-of-child-of-root>
</child-of-root>
<another-child-of-root id="yet another child of root">I am a sibling to child-of-root</another-child-of-root>
<final-child-of-root>this element is a child of root</final-child-of-root>
</root>
<root version="1.0">
<first-child key="1">some value for first child</first-child>
<second-child key="2">some value for second child
<test>test value</test>
</second-child>
<third-child key="3" name="three"/>
<fourth-child key="4" name="four">
<fourth-child-child name="foobar">some text for grand-child</fourth-child-child>
</fourth-child>
</root>
------------- ---------------- ---------------
------------- Standard Error -----------------
org.simpleframework.xml.stream.NodeException: No root node
at org.simpleframework.xml.stream.OutputDocument.commit(OutputDocument.java:349)
at org.simpleframework.xml.stream.NodeWriterTest.testEarlyCommit(NodeWriterTest.java:15)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:518)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1052)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:906)
------------- ---------------- ---------------
Testcase: testEarlyCommit took 0.009 sec
Testcase: testBasicWrite took 0.009 sec
Testcase: testWrite took 0.002 sec
Testcase: testDirectory took 0.002 sec
|