You are viewing a plain text version of this content. The canonical link for it is here.
Posted to doxia-commits@maven.apache.org by vs...@apache.org on 2009/06/15 11:53:12 UTC

svn commit: r784707 - /maven/doxia/doxia/trunk/doxia-modules/doxia-module-xhtml/src/test/java/org/apache/maven/doxia/module/xhtml/XhtmlParserTest.java

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} */