Testsuite: org.simpleframework.xml.core.TextTest
Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0.323 sec
------------- Standard Output ---------------
<test>
   <array length="3">
      <entry name="a" version="ONE"><![CDATA[Example 1]]></entry>
      <entry name="b" version="TWO"><![CDATA[Example 2]]></entry>
      <entry name="c" version="THREE"><![CDATA[Example 3]]></entry>
   </array>
</test><test>
   <array length="3">
      <entry name="a" version="ONE"><![CDATA[Example 1]]></entry>
      <entry name="b" version="TWO"><![CDATA[Example 2]]></entry>
      <entry name="c" version="THREE"><![CDATA[Example 3]]></entry>
   </array>
</test>
<test ID="0">
   <!-- [Lorg.simpleframework.xml.core.TextTest$TextEntry; -->
   <array length="3" ID="1">
      <!-- org.simpleframework.xml.core.TextTest$TextEntry -->
      <entry ID="2" name="a" version="ONE"><![CDATA[Example 1]]></entry>
      <!-- org.simpleframework.xml.core.TextTest$TextEntry -->
      <entry ID="3" name="b" version="TWO"><![CDATA[Example 2]]></entry>
      <!-- org.simpleframework.xml.core.TextTest$TextEntry -->
      <entry ID="4" name="c" version="THREE"><![CDATA[Example 3]]></entry>
   </array>
</test>>>>>> ELEMENT=[element test]
>>>>> TYPE=[class org.simpleframework.xml.core.TextTest$TextList]
>>>>> SOURCE=[class com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl]
<Test ID="0">
   <!-- [Lorg.simpleframework.xml.core.TextTest$TextEntry; -->
   <Array length="3" ID="1">
      <!-- org.simpleframework.xml.core.TextTest$TextEntry -->
      <Entry ID="2" name="a" version="ONE"><![CDATA[Example 1]]></Entry>
      <!-- org.simpleframework.xml.core.TextTest$TextEntry -->
      <Entry ID="3" name="b" version="TWO"><![CDATA[Example 2]]></Entry>
      <!-- org.simpleframework.xml.core.TextTest$TextEntry -->
      <Entry ID="4" name="c" version="THREE"><![CDATA[Example 3]]></Entry>
   </Array>
</Test>>>>>> ELEMENT=[element Test]
>>>>> TYPE=[class org.simpleframework.xml.core.TextTest$TextList]
>>>>> SOURCE=[class com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl]
<test>
   <array length="3">
      <entry name="a" version="ONE"><![CDATA[Example 1]]></entry>
      <entry name="b" version="TWO"><![CDATA[Example 2]]></entry>
      <entry name="c" version="THREE"><![CDATA[Example 3]]></entry>
   </array>
</test><test>
   <array length="3">
      <entry name="a" version="ONE"><![CDATA[Example 1]]></entry>
      <entry name="b" version="TWO"><![CDATA[Example 2]]></entry>
      <entry name="c" version="THREE"><![CDATA[Example 3]]></entry>
   </array>
</test>
<test ID="0">
   <!-- [Lorg.simpleframework.xml.core.TextTest$TextEntry; -->
   <array length="3" ID="1">
      <!-- org.simpleframework.xml.core.TextTest$TextEntry -->
      <entry ID="2" name="a" version="ONE"><![CDATA[Example 1]]></entry>
      <!-- org.simpleframework.xml.core.TextTest$TextEntry -->
      <entry ID="3" name="b" version="TWO"><![CDATA[Example 2]]></entry>
      <!-- org.simpleframework.xml.core.TextTest$TextEntry -->
      <entry ID="4" name="c" version="THREE"><![CDATA[Example 3]]></entry>
   </array>
</test>>>>>> ELEMENT=[element test]
>>>>> TYPE=[class org.simpleframework.xml.core.TextTest$TextList]
>>>>> SOURCE=[class com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl]
<Test ID="0">
   <!-- [Lorg.simpleframework.xml.core.TextTest$TextEntry; -->
   <Array length="3" ID="1">
      <!-- org.simpleframework.xml.core.TextTest$TextEntry -->
      <Entry ID="2" name="a" version="ONE"><![CDATA[Example 1]]></Entry>
      <!-- org.simpleframework.xml.core.TextTest$TextEntry -->
      <Entry ID="3" name="b" version="TWO"><![CDATA[Example 2]]></Entry>
      <!-- org.simpleframework.xml.core.TextTest$TextEntry -->
      <Entry ID="4" name="c" version="THREE"><![CDATA[Example 3]]></Entry>
   </Array>
</Test>>>>>> ELEMENT=[element Test]
>>>>> TYPE=[class org.simpleframework.xml.core.TextTest$TextList]
>>>>> SOURCE=[class com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl]
<text name="a" version="ONE"><![CDATA[
    
      <element> 
         <data>This is hidden</data>
      </element> 
   
]]></text><text name="a" version="ONE"><![CDATA[
    
      <element> 
         <data>This is hidden</data>
      </element> 
   
]]></text>
<text ID="0" name="a" version="ONE"><![CDATA[
    
      <element> 
         <data>This is hidden</data>
      </element> 
   
]]></text>>>>>> ELEMENT=[element text]
>>>>> TYPE=[class org.simpleframework.xml.core.TextTest$TextEntry]
>>>>> SOURCE=[class com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl]
>>>>> ELEMENT=[element text]
>>>>> TYPE=[class java.lang.String]
>>>>> SOURCE=[class com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl]
<Text ID="0" name="a" version="ONE"><![CDATA[
    
      <element> 
         <data>This is hidden</data>
      </element> 
   
]]></Text>>>>>> ELEMENT=[element Text]
>>>>> TYPE=[class org.simpleframework.xml.core.TextTest$TextEntry]
>>>>> SOURCE=[class com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl]
>>>>> ELEMENT=[element Text]
>>>>> TYPE=[class java.lang.String]
>>>>> SOURCE=[class com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl]
<text name="a" version="ONE"><![CDATA[
    
      <element> 
         <data>This is hidden</data>
      </element> 
   
]]></text><text name="a" version="ONE"><![CDATA[
    
      <element> 
         <data>This is hidden</data>
      </element> 
   
]]></text>
<text ID="0" name="a" version="ONE"><![CDATA[
    
      <element> 
         <data>This is hidden</data>
      </element> 
   
]]></text>>>>>> ELEMENT=[element text]
>>>>> TYPE=[class org.simpleframework.xml.core.TextTest$TextEntry]
>>>>> SOURCE=[class com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl]
>>>>> ELEMENT=[element text]
>>>>> TYPE=[class java.lang.String]
>>>>> SOURCE=[class com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl]
<Text ID="0" name="a" version="ONE"><![CDATA[
    
      <element> 
         <data>This is hidden</data>
      </element> 
   
]]></Text>>>>>> ELEMENT=[element Text]
>>>>> TYPE=[class org.simpleframework.xml.core.TextTest$TextEntry]
>>>>> SOURCE=[class com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl]
>>>>> ELEMENT=[element Text]
>>>>> TYPE=[class java.lang.String]
>>>>> SOURCE=[class com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl]
<text name="a" version="ONE"/><text name="a" version="ONE"/>
<text ID="0" name="a" version="ONE"/>>>>>> ELEMENT=[element text]
>>>>> TYPE=[class org.simpleframework.xml.core.TextTest$OptionalTextEntry]
>>>>> SOURCE=[class com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl]
>>>>> ELEMENT=[element text]
>>>>> TYPE=[class java.lang.String]
>>>>> SOURCE=[class com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl]
<Text ID="0" name="a" version="ONE"/>>>>>> ELEMENT=[element Text]
>>>>> TYPE=[class org.simpleframework.xml.core.TextTest$OptionalTextEntry]
>>>>> SOURCE=[class com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl]
>>>>> ELEMENT=[element Text]
>>>>> TYPE=[class java.lang.String]
>>>>> SOURCE=[class com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl]
<text name="a" version="ONE"/><text name="a" version="ONE"/>
<text ID="0" name="a" version="ONE"/>>>>>> ELEMENT=[element text]
>>>>> TYPE=[class org.simpleframework.xml.core.TextTest$OptionalTextEntry]
>>>>> SOURCE=[class com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl]
>>>>> ELEMENT=[element text]
>>>>> TYPE=[class java.lang.String]
>>>>> SOURCE=[class com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl]
<Text ID="0" name="a" version="ONE"/>>>>>> ELEMENT=[element Text]
>>>>> TYPE=[class org.simpleframework.xml.core.TextTest$OptionalTextEntry]
>>>>> SOURCE=[class com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl]
>>>>> ELEMENT=[element Text]
>>>>> TYPE=[class java.lang.String]
>>>>> SOURCE=[class com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl]
------------- ---------------- ---------------
------------- Standard Error -----------------
org.simpleframework.xml.core.TextException: Cannot use @org.simpleframework.xml.Text(required=true, data=false, empty=) to represent field 'list' private java.util.List org.simpleframework.xml.core.TextTest$NonPrimitiveTextEntry.list
	at org.simpleframework.xml.core.TextLabel.getConverter(TextLabel.java:105)
	at org.simpleframework.xml.core.CacheLabel.getConverter(CacheLabel.java:161)
	at org.simpleframework.xml.core.Composite.readObject(Composite.java:605)
	at org.simpleframework.xml.core.Composite.read(Composite.java:569)
	at org.simpleframework.xml.core.Composite.readText(Composite.java:488)
	at org.simpleframework.xml.core.Composite.read(Composite.java:348)
	at org.simpleframework.xml.core.Composite.readDefault(Composite.java:245)
	at org.simpleframework.xml.core.Composite.read(Composite.java:215)
	at org.simpleframework.xml.core.Composite.read(Composite.java:185)
	at org.simpleframework.xml.core.Composite.read(Composite.java:133)
	at org.simpleframework.xml.core.Traverser.read(Traverser.java:92)
	at org.simpleframework.xml.core.Persister.read(Persister.java:602)
	at org.simpleframework.xml.core.Persister.read(Persister.java:583)
	at org.simpleframework.xml.core.Persister.read(Persister.java:564)
	at org.simpleframework.xml.core.Persister.read(Persister.java:501)
	at org.simpleframework.xml.core.Persister.read(Persister.java:410)
	at org.simpleframework.xml.core.TextTest.testNonPrimitive(TextTest.java:228)
	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:585)
	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:421)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)
------------- ---------------- ---------------

Testcase: testText took 0.226 sec
Testcase: testData took 0.036 sec
Testcase: testDuplicate took 0.003 sec
Testcase: testIllegalElement took 0.007 sec
Testcase: testEmpty took 0.003 sec
Testcase: testOptional took 0.036 sec
Testcase: testNonPrimitive took 0.004 sec
Testcase: testDirectory took 0 sec
