svn commit: r389098 - /maven/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/module/rtf/RtfSinkTest.java
Author: brett Date: Mon Mar 27 03:02:16 2006 New Revision: 389098 URL: http://svn.apache.org/viewcvs?rev=389098&view=rev Log: attempt to correct RTF test under certain environments Modified: maven/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/module/rtf/RtfSinkTest.java Modified: maven/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/module/rtf/RtfSinkTest.java URL: http://svn.apache.org/viewcvs/maven/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/module/rtf/RtfSinkTest.java?rev=389098&r1=389097&r2=389098&view=diff == --- maven/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/module/rtf/RtfSinkTest.java (original) +++ maven/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/module/rtf/RtfSinkTest.java Mon Mar 27 03:02:16 2006 @@ -32,12 +32,14 @@ { protected String outputExtension() { -return "tex"; +return "rtf"; } protected Sink createSink() throws Exception { -return new RtfSink( new FileOutputStream( new File( getBasedirFile(), "target/output/test.rtf" ) ) ); +File outputFile = new File( getBasedirFile(), "target/output/test.rtf" ); +System.out.println( "Test file: " + outputFile ); +return new RtfSink( new FileOutputStream( outputFile ) ); } }
svn commit: r389100 - /maven/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/module/rtf/RtfSinkTest.java
Author: brett Date: Mon Mar 27 03:14:50 2006 New Revision: 389100 URL: http://svn.apache.org/viewcvs?rev=389100&view=rev Log: fix test Modified: maven/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/module/rtf/RtfSinkTest.java Modified: maven/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/module/rtf/RtfSinkTest.java URL: http://svn.apache.org/viewcvs/maven/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/module/rtf/RtfSinkTest.java?rev=389100&r1=389099&r2=389100&view=diff == --- maven/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/module/rtf/RtfSinkTest.java (original) +++ maven/doxia/trunk/doxia-core/src/test/java/org/apache/maven/doxia/module/rtf/RtfSinkTest.java Mon Mar 27 03:14:50 2006 @@ -39,7 +39,7 @@ throws Exception { File outputFile = new File( getBasedirFile(), "target/output/test.rtf" ); -System.out.println( "Test file: " + outputFile ); + outputFile.getParentFile().mkdirs(); return new RtfSink( new FileOutputStream( outputFile ) ); } }