Author: hboutemy
Date: Sun Nov  9 14:05:27 2008
New Revision: 712572

URL: http://svn.apache.org/viewvc?rev=712572&view=rev
Log:
added reference test document generation to RtfSink test (without checks on it 
for the moment)

Modified:
    
maven/doxia/doxia/trunk/doxia-modules/doxia-module-rtf/src/test/java/org/apache/maven/doxia/module/rtf/RtfSinkTest.java

Modified: 
maven/doxia/doxia/trunk/doxia-modules/doxia-module-rtf/src/test/java/org/apache/maven/doxia/module/rtf/RtfSinkTest.java
URL: 
http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-rtf/src/test/java/org/apache/maven/doxia/module/rtf/RtfSinkTest.java?rev=712572&r1=712571&r2=712572&view=diff
==============================================================================
--- 
maven/doxia/doxia/trunk/doxia-modules/doxia-module-rtf/src/test/java/org/apache/maven/doxia/module/rtf/RtfSinkTest.java
 (original)
+++ 
maven/doxia/doxia/trunk/doxia-modules/doxia-module-rtf/src/test/java/org/apache/maven/doxia/module/rtf/RtfSinkTest.java
 Sun Nov  9 14:05:27 2008
@@ -21,11 +21,13 @@
 
 import org.apache.maven.doxia.sink.Sink;
 import org.apache.maven.doxia.sink.AbstractSinkTestCase;
+import org.apache.maven.doxia.sink.SinkTestDocument;
 import org.apache.maven.doxia.parser.Parser;
 import org.apache.maven.doxia.module.apt.AptParser;
 
 import java.io.File;
 import java.io.FileOutputStream;
+import java.io.OutputStream;
 import java.io.Reader;
 import java.io.InputStream;
 import java.io.InputStreamReader;
@@ -74,4 +76,17 @@
 
         return reader;
     }
+
+    public void testDocument()
+        throws Exception
+    {
+        File outputFile = new File( getBasedirFile(), 
"target/test-output/sink/testDocument.rtf" );
+        outputFile.getParentFile().mkdirs();
+        OutputStream out = new FileOutputStream( outputFile );
+
+        Sink sink = new RtfSink( out );
+        SinkTestDocument.generate( sink );
+
+        out.close();
+    }
 }


Reply via email to