Testsuite: org.simpleframework.xml.core.PathAsNamespacePrefixTest
Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.528 sec
------------- Standard Output ---------------
<p:pathWithPrefix xmlns:p="http://www.x.com/y">
   <x>
      <y>
         <p:z>
            <p:name>tim</p:name>
         </p:z>
      </y>
   </x>
</p:pathWithPrefix>
<p:pathWithPrefix xmlns:p="http://www.x.com/y">
   <x>
      <y>
         <p:z>
            <p:name>tim</p:name>
         </p:z>
      </y>
   </x>
</p:pathWithPrefix><p:pathWithPrefix xmlns:p="http://www.x.com/y">
   <x>
      <y>
         <p:z>
            <p:name>tim</p:name>
         </p:z>
      </y>
   </x>
</p:pathWithPrefix>
<p:path-with-prefix ID="0" xmlns:p="http://www.x.com/y">
   <x>
      <y>
         <p:z>
            <!-- java.lang.String -->
            <p:name ID="1">tim</p:name>
         </p:z>
      </y>
   </x>
</p:path-with-prefix>>>>>> ELEMENT=[element path-with-prefix]
>>>>> TYPE=[class org.simpleframework.xml.core.PathAsNamespacePrefixTest$PathWithPrefix]
>>>>> SOURCE=[class org.xmlpull.mxp1.MXParserCachingStrings]
<p:PathWithPrefix ID="0" xmlns:p="http://www.x.com/y">
   <X>
      <Y>
         <p:Z>
            <!-- java.lang.String -->
            <p:Name ID="1">tim</p:Name>
         </p:Z>
      </Y>
   </X>
</p:PathWithPrefix>>>>>> ELEMENT=[element PathWithPrefix]
>>>>> TYPE=[class org.simpleframework.xml.core.PathAsNamespacePrefixTest$PathWithPrefix]
>>>>> SOURCE=[class org.xmlpull.mxp1.MXParserCachingStrings]
<p:bringPrefixInScope xmlns:p="http://www.x.com/p">
   <example>
      <x>
         <y>
            <p:z>
               <name xmlns="http://www.x.com/y">tim</name>
            </p:z>
         </y>
      </x>
   </example>
</p:bringPrefixInScope>
<p:bringPrefixInScope xmlns:p="http://www.x.com/p">
   <example>
      <x>
         <y>
            <p:z>
               <name xmlns="http://www.x.com/y">tim</name>
            </p:z>
         </y>
      </x>
   </example>
</p:bringPrefixInScope><p:bringPrefixInScope xmlns:p="http://www.x.com/p">
   <example>
      <x>
         <y>
            <p:z>
               <name xmlns="http://www.x.com/y">tim</name>
            </p:z>
         </y>
      </x>
   </example>
</p:bringPrefixInScope>
<p:bring-prefix-in-scope ID="0" xmlns:p="http://www.x.com/p">
   <!-- org.simpleframework.xml.core.PathAsNamespacePrefixTest$PathWithPrefixOutOfScope -->
   <example ID="1">
      <x>
         <y>
            <p:z>
               <!-- java.lang.String -->
               <name ID="2" xmlns="http://www.x.com/y">tim</name>
            </p:z>
         </y>
      </x>
   </example>
</p:bring-prefix-in-scope>>>>>> ELEMENT=[element bring-prefix-in-scope]
>>>>> TYPE=[class org.simpleframework.xml.core.PathAsNamespacePrefixTest$BringPrefixInScope]
>>>>> SOURCE=[class org.xmlpull.mxp1.MXParserCachingStrings]
<p:BringPrefixInScope ID="0" xmlns:p="http://www.x.com/p">
   <!-- org.simpleframework.xml.core.PathAsNamespacePrefixTest$PathWithPrefixOutOfScope -->
   <Example ID="1">
      <X>
         <Y>
            <p:Z>
               <!-- java.lang.String -->
               <Name ID="2" xmlns="http://www.x.com/y">tim</Name>
            </p:Z>
         </Y>
      </X>
   </Example>
</p:BringPrefixInScope>>>>>> ELEMENT=[element BringPrefixInScope]
>>>>> TYPE=[class org.simpleframework.xml.core.PathAsNamespacePrefixTest$BringPrefixInScope]
>>>>> SOURCE=[class org.xmlpull.mxp1.MXParserCachingStrings]
------------- ---------------- ---------------
------------- Standard Error -----------------
org.simpleframework.xml.core.ElementException: Namespace prefix 'p' in class org.simpleframework.xml.core.PathAsNamespacePrefixTest$PathWithPrefixOutOfScope is not in scope
	at org.simpleframework.xml.core.Composite.writeSection(Composite.java:1065)
	at org.simpleframework.xml.core.Composite.writeElements(Composite.java:1154)
	at org.simpleframework.xml.core.Composite.writeSection(Composite.java:1071)
	at org.simpleframework.xml.core.Composite.writeElements(Composite.java:1154)
	at org.simpleframework.xml.core.Composite.writeSection(Composite.java:1071)
	at org.simpleframework.xml.core.Composite.writeElements(Composite.java:1154)
	at org.simpleframework.xml.core.Composite.writeSection(Composite.java:1071)
	at org.simpleframework.xml.core.Composite.write(Composite.java:1042)
	at org.simpleframework.xml.core.Composite.write(Composite.java:1019)
	at org.simpleframework.xml.core.Traverser.write(Traverser.java:236)
	at org.simpleframework.xml.core.Traverser.write(Traverser.java:208)
	at org.simpleframework.xml.core.Traverser.write(Traverser.java:186)
	at org.simpleframework.xml.core.Persister.write(Persister.java:1187)
	at org.simpleframework.xml.core.Persister.write(Persister.java:1169)
	at org.simpleframework.xml.core.Persister.write(Persister.java:1147)
	at org.simpleframework.xml.core.Persister.write(Persister.java:1266)
	at org.simpleframework.xml.core.PathAsNamespacePrefixTest.testPathWithPrefixOufOfScope(PathAsNamespacePrefixTest.java:79)
	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:592)
	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:422)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:931)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:785)
------------- ---------------- ---------------

Testcase: testPathWithPrefix took 0.409 sec
Testcase: testPathWithPrefixOufOfScope took 0.015 sec
Testcase: testBringPrefixInScope took 0.086 sec
Testcase: testDirectory took 0.002 sec
