Author: vsiveton
Date: Thu Aug 16 06:19:48 2007
New Revision: 566704
URL: http://svn.apache.org/viewvc?view=rev&rev=566704
Log:
o fixed build for Windows due to r566673
o be sure that line.separator is unix one to prevent test failures on windows
(see noNewLine(...))
o added javadoc
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?view=diff&rev=566704&r1=566703&r2=566704
==============================================================================
---
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
Thu Aug 16 06:19:48 2007
@@ -29,6 +29,9 @@
/**
* Abstract base class to test sinks.
+ *
+ * @version $Id$
+ * @since 1.0
*/
public abstract class AbstractSinkTest
extends AbstractModuleTest
@@ -38,10 +41,18 @@
/**
* Resets the writer and creates a new sink with it.
+ * <br/>
+ * Set the system property <code>line.separator</code> to <code>\n</code>
(Unix) to prevent
+ * failure on windows.
+ *
+ * @see #noNewLine(String)
*/
protected void setUp()
throws Exception
{
+ // Safety
+ System.setProperty( "line.separator", "\n" );
+
super.setUp();
writer.reset();
@@ -642,7 +653,7 @@
// Utility methods
// ----------------------------------------------------------------------
- private String noNewLine( String text )
+ protected String noNewLine( String text )
{
String EOL = System.getProperty( "line.separator" );
return text.replaceAll( EOL, "" );
@@ -888,7 +899,7 @@
/**
* Returns a NonBreakingSpace block generated by this sink.
- * @return The result of invoking a NonBreakingSpace block
+ * @return The result of invoking a NonBreakingSpace block
* on the current sink.
* @see #testNonBreakingSpace()
*/