maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ltheu...@apache.org
Subject svn commit: r594877 - /maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java
Date Wed, 14 Nov 2007 13:43:44 GMT
Author: ltheussl
Date: Wed Nov 14 05:43:43 2007
New Revision: 594877

URL: http://svn.apache.org/viewvc?rev=594877&view=rev
Log:
Add a method to access collected sink events.

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

Modified: maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java?rev=594877&r1=594876&r2=594877&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java
(original)
+++ maven/doxia/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/sink/AbstractSinkTest.java
Wed Nov 14 05:43:43 2007
@@ -695,6 +695,15 @@
     }
 
     /**
+     * Returns a String representation of all events that have been written to the sink.
+     * @return The Sink content as a String.
+     */
+    protected String getSinkContent()
+    {
+        return writer.toString();
+    }
+
+    /**
      * Returns the directory where all sink test output will go.
      * @return The test output directory.
      */



Mime
View raw message