Author: hboutemy
Date: Sun Nov  9 12:31:17 2008
New Revision: 712549

URL: http://svn.apache.org/viewvc?rev=712549&view=rev
Log:
avoid relying on platform encoding

Modified:
    
maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/xsd/AbstractXmlValidatorTest.java

Modified: 
maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/xsd/AbstractXmlValidatorTest.java
URL: 
http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/xsd/AbstractXmlValidatorTest.java?rev=712549&r1=712548&r2=712549&view=diff
==============================================================================
--- 
maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/xsd/AbstractXmlValidatorTest.java
 (original)
+++ 
maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/xsd/AbstractXmlValidatorTest.java
 Sun Nov  9 12:31:17 2008
@@ -19,10 +19,10 @@
  * under the License.
  */
 
-import java.io.ByteArrayInputStream;
 import java.io.File;
 import java.io.IOException;
 import java.io.Reader;
+import java.io.StringReader;
 import java.util.ArrayList;
 import java.util.Iterator;
 import java.util.List;
@@ -211,7 +211,7 @@
 
         MessagesErrorHandler errorHandler = (MessagesErrorHandler) 
getXMLReader().getErrorHandler();
 
-        getXMLReader().parse( new InputSource( new ByteArrayInputStream( 
content.getBytes() ) ) );
+        getXMLReader().parse( new InputSource( new StringReader( content ) ) );
 
         return errorHandler.getMessages();
     }


Reply via email to