maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsive...@apache.org
Subject svn commit: r723990 - /maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/xsd/AbstractXmlValidatorTest.java
Date Sat, 06 Dec 2008 14:43:35 GMT
Author: vsiveton
Date: Sat Dec  6 06:43:35 2008
New Revision: 723990

URL: http://svn.apache.org/viewvc?rev=723990&view=rev
Log:
o improved tests due to r723989

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=723990&r1=723989&r2=723990&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
Sat Dec  6 06:43:35 2008
@@ -29,6 +29,7 @@
 
 import junit.framework.AssertionFailedError;
 
+import org.apache.maven.doxia.parser.AbstractXmlParser;
 import org.apache.maven.scm.ScmFileSet;
 import org.apache.maven.scm.manager.ScmManager;
 import org.codehaus.plexus.PlexusTestCase;
@@ -184,6 +185,8 @@
                 xmlReader.setFeature( "http://apache.org/xml/features/validation/schema",
true );
                 MessagesErrorHandler errorHandler = new MessagesErrorHandler();
                 xmlReader.setErrorHandler( errorHandler );
+
+                xmlReader.setEntityResolver( new AbstractXmlParser.CachedFileEntityResolver()
);
             }
             catch ( SAXNotRecognizedException e )
             {



Mime
View raw message