maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ltheu...@apache.org
Subject svn commit: r1061785 - /maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/DefaultSiteRendererTest.java
Date Fri, 21 Jan 2011 12:31:43 GMT
Author: ltheussl
Date: Fri Jan 21 12:31:43 2011
New Revision: 1061785

URL: http://svn.apache.org/viewvc?rev=1061785&view=rev
Log:
code clean-up

Modified:
    maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/DefaultSiteRendererTest.java

Modified: maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/DefaultSiteRendererTest.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/DefaultSiteRendererTest.java?rev=1061785&r1=1061784&r2=1061785&view=diff
==============================================================================
--- maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/DefaultSiteRendererTest.java
(original)
+++ maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/DefaultSiteRendererTest.java
Fri Jan 21 12:31:43 2011
@@ -312,31 +312,26 @@ public class DefaultSiteRendererTest
      */
     public void validatePages() throws Exception
     {
-        // Need to refactor...
-        XhtmlValidatorTest validator = new XhtmlValidatorTest();
-        validator.setUp();
-        validator.testValidateFiles();
+        new XhtmlValidatorTest().validateGeneratedPages();
     }
 
     protected static class XhtmlValidatorTest
         extends AbstractXmlValidator
     {
-        /** {@inheritDoc} */
-        protected void setUp()
+        /**
+         * Validate the generated documents.
+         *
+         * @throws Exception
+         */
+        public void validateGeneratedPages()
             throws Exception
         {
-            super.setUp();
+            setUp();
+            testValidateFiles();
+            tearDown();
         }
 
-        /** {@inheritDoc} */
-        protected void tearDown()
-            throws Exception
-        {
-            super.tearDown();
-        }
-
-        /** {@inheritDoc} */
-        protected String[] getIncludes()
+        private static String[] getIncludes()
         {
             return new String[] { "**/*.html" };
         }



Mime
View raw message