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 2008/10/26 13:25:21 UTC

svn commit: r707979 - /maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/AbstractModuleTest.java

Author: vsiveton
Date: Sun Oct 26 05:25:21 2008
New Revision: 707979

URL: http://svn.apache.org/viewvc?rev=707979&view=rev
Log:
o added getXmlTestWriter( String baseName ) similar to getTestWriter( String baseName )

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

Modified: maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/AbstractModuleTest.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/AbstractModuleTest.java?rev=707979&r1=707978&r2=707979&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/AbstractModuleTest.java (original)
+++ maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/AbstractModuleTest.java Sun Oct 26 05:25:21 2008
@@ -84,6 +84,21 @@
      * in the test target output directory.
      *
      * @param baseName The name of the target file.
+     * @return An XML FileWriter.
+     * @throws IOException If the FileWriter could not be generated.
+     * @see #getXmlTestWriter(String, String)
+     */
+    protected Writer getXmlTestWriter( String baseName )
+        throws IOException
+    {
+        return getXmlTestWriter( baseName, outputExtension() );
+    }
+
+    /**
+     * Returns an XML FileWriter to write to a file with the given name
+     * in the test target output directory.
+     *
+     * @param baseName The name of the target file.
      * @param extension The file extension of the file to write.
      * @return An XML FileWriter.
      * @throws IOException If the FileWriter could not be generated.
@@ -110,6 +125,7 @@
      * @param baseName The name of the target file.
      * @return A FileWriter.
      * @throws IOException If the FileWriter could not be generated.
+     * @see #getTestWriter(String, String)
      */
     protected Writer getTestWriter( String baseName )
         throws IOException