Author: vsiveton Date: Mon Jun 15 09:53:12 2009 New Revision: 784707 URL: http://svn.apache.org/viewvc?rev=784707&view=rev Log: o using plexus instantiation
Modified: maven/doxia/doxia/trunk/doxia-modules/doxia-module-xhtml/src/test/java/org/apache/maven/doxia/module/xhtml/XhtmlParserTest.java Modified: maven/doxia/doxia/trunk/doxia-modules/doxia-module-xhtml/src/test/java/org/apache/maven/doxia/module/xhtml/XhtmlParserTest.java URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-xhtml/src/test/java/org/apache/maven/doxia/module/xhtml/XhtmlParserTest.java?rev=784707&r1=784706&r2=784707&view=diff ============================================================================== --- maven/doxia/doxia/trunk/doxia-modules/doxia-module-xhtml/src/test/java/org/apache/maven/doxia/module/xhtml/XhtmlParserTest.java (original) +++ maven/doxia/doxia/trunk/doxia-modules/doxia-module-xhtml/src/test/java/org/apache/maven/doxia/module/xhtml/XhtmlParserTest.java Mon Jun 15 09:53:12 2009 @@ -37,12 +37,16 @@ public class XhtmlParserTest extends AbstractParserTest { + private XhtmlParser parser; + /** {...@inheritdoc} */ protected void setUp() throws Exception { super.setUp(); + parser = (XhtmlParser) lookup( Parser.ROLE, "xhtml" ); + // AbstractXmlParser.CachedFileEntityResolver downloads DTD/XSD files in ${java.io.tmpdir} // Be sure to delete them String tmpDir = System.getProperty( "java.io.tmpdir" ); @@ -58,7 +62,7 @@ /** {...@inheritdoc} */ protected Parser createParser() { - return new XhtmlParser(); + return parser; } /** {...@inheritdoc} */