diff --git a/doxia-core/src/test/java/org/apache/maven/doxia/AbstractModuleTest.java b/doxia-core/src/test/java/org/apache/maven/doxia/AbstractModuleTest.java
index 9a6611616..41092fc35 100644
--- a/doxia-core/src/test/java/org/apache/maven/doxia/AbstractModuleTest.java
+++ b/doxia-core/src/test/java/org/apache/maven/doxia/AbstractModuleTest.java
@@ -41,18 +41,6 @@
@PlexusTest
public abstract class AbstractModuleTest implements Markup {
- /*
- * Set the system properties:
- *
- * line.separator
to \n
(Unix) to prevent
- * failure on windows.
- *
- */
- static {
- // Safety
- System.setProperty("line.separator", "\n");
- }
-
// ----------------------------------------------------------------------
// Methods for creating test reader and writer
// ----------------------------------------------------------------------
diff --git a/doxia-modules/doxia-module-apt/src/test/java/org/apache/maven/doxia/module/apt/AptSinkTest.java b/doxia-modules/doxia-module-apt/src/test/java/org/apache/maven/doxia/module/apt/AptSinkTest.java
index 3e23c073e..54cffbcf1 100644
--- a/doxia-modules/doxia-module-apt/src/test/java/org/apache/maven/doxia/module/apt/AptSinkTest.java
+++ b/doxia-modules/doxia-module-apt/src/test/java/org/apache/maven/doxia/module/apt/AptSinkTest.java
@@ -195,14 +195,14 @@ protected String getTableBlock(String cell, String caption) {
@Override
protected String getTableWithHeaderBlock(String... rowPrefixes) {
- return "\n"
- + "*----+--:--*\n"
- + "|" + rowPrefixes[0] + "0||" + rowPrefixes[0] + "1||" + rowPrefixes[0] + "2|\n"
- + "*----+--:--*\n"
- + rowPrefixes[1] + "0|" + rowPrefixes[1] + "1|" + rowPrefixes[1] + "2|\n"
- + "*----+--:--*\n"
- + rowPrefixes[2] + "0|" + rowPrefixes[2] + "1|" + rowPrefixes[2] + "2|\n"
- + "*----+--:--*\n";
+ return EOL
+ + "*----+--:--*" + EOL
+ + "|" + rowPrefixes[0] + "0||" + rowPrefixes[0] + "1||" + rowPrefixes[0] + "2|" + EOL
+ + "*----+--:--*" + EOL
+ + rowPrefixes[1] + "0|" + rowPrefixes[1] + "1|" + rowPrefixes[1] + "2|" + EOL
+ + "*----+--:--*" + EOL
+ + rowPrefixes[2] + "0|" + rowPrefixes[2] + "1|" + rowPrefixes[2] + "2|" + EOL
+ + "*----+--:--*" + EOL;
}
/** {@inheritDoc} */
diff --git a/doxia-modules/doxia-module-xdoc/src/test/java/org/apache/maven/doxia/module/xdoc/XdocParserTest.java b/doxia-modules/doxia-module-xdoc/src/test/java/org/apache/maven/doxia/module/xdoc/XdocParserTest.java
index 2fb5c5d44..db11c658b 100644
--- a/doxia-modules/doxia-module-xdoc/src/test/java/org/apache/maven/doxia/module/xdoc/XdocParserTest.java
+++ b/doxia-modules/doxia-module-xdoc/src/test/java/org/apache/maven/doxia/module/xdoc/XdocParserTest.java
@@ -406,11 +406,11 @@ public void testEntities() throws Exception {
@Test
public void testStyleWithCData() throws Exception {
// DOXIA-449
- final String text = "";
SinkEventTestingSink sink = new SinkEventTestingSink();
diff --git a/doxia-modules/doxia-module-xdoc/src/test/java/org/apache/maven/doxia/module/xdoc/XdocSinkTest.java b/doxia-modules/doxia-module-xdoc/src/test/java/org/apache/maven/doxia/module/xdoc/XdocSinkTest.java
index 60491abac..1b40d47cf 100644
--- a/doxia-modules/doxia-module-xdoc/src/test/java/org/apache/maven/doxia/module/xdoc/XdocSinkTest.java
+++ b/doxia-modules/doxia-module-xdoc/src/test/java/org/apache/maven/doxia/module/xdoc/XdocSinkTest.java
@@ -184,17 +184,17 @@ protected String getFooterBlock() {
/** {@inheritDoc} */
protected String getListBlock(String item) {
- return "";
+ return "";
}
/** {@inheritDoc} */
protected String getNumberedListBlock(String item) {
- return "\n- " + item + "
";
+ return "" + EOL + "- " + item + "
";
}
/** {@inheritDoc} */
protected String getDefinitionListBlock(String definum, String definition) {
- return "\n- " + definum + "
\n- " + definition + "
";
+ return "" + EOL + "- " + definum + "
" + EOL + "- " + definition + "
";
}
/** {@inheritDoc} */
@@ -209,20 +209,21 @@ protected String getFigureBlock(String source, String caption) {
/** {@inheritDoc} */
protected String getTableBlock(String cell, String caption) {
- return "" + caption + "\n\n" + cell
- + " |
";
+ return "" + caption + "" + EOL + "" + EOL
+ + "" + cell + " |
";
}
@Override
protected String getTableWithHeaderBlock(String... rowPrefixes) {
- return "\n\n" + rowPrefixes[0] + "0 | \n" + rowPrefixes[0] + "1 | \n"
- + rowPrefixes[0] + "2 |
\n"
- + "\n" + rowPrefixes[1]
- + "0 | \n" + rowPrefixes[1]
- + "1 | \n" + rowPrefixes[1] + "2 |
\n"
- + "\n" + rowPrefixes[2]
- + "0 | \n" + rowPrefixes[2]
- + "1 | \n" + rowPrefixes[2] + "2 |
"
+ return "" + EOL + "" + EOL + "" + rowPrefixes[0] + "0 | " + EOL + ""
+ + rowPrefixes[0] + "1 | " + EOL + ""
+ + rowPrefixes[0] + "2 |
" + EOL
+ + "" + EOL + "" + rowPrefixes[1]
+ + "0 | " + EOL + "" + rowPrefixes[1]
+ + "1 | " + EOL + "" + rowPrefixes[1] + "2 |
" + EOL
+ + "" + EOL + "" + rowPrefixes[2]
+ + "0 | " + EOL + "" + rowPrefixes[2]
+ + "1 | " + EOL + "" + rowPrefixes[2] + "2 |
"
+ "
";
}
diff --git a/doxia-modules/doxia-module-xhtml5/src/test/java/org/apache/maven/doxia/module/xhtml5/Xhtml5SinkTest.java b/doxia-modules/doxia-module-xhtml5/src/test/java/org/apache/maven/doxia/module/xhtml5/Xhtml5SinkTest.java
index 8d262e0a6..b439e34fe 100644
--- a/doxia-modules/doxia-module-xhtml5/src/test/java/org/apache/maven/doxia/module/xhtml5/Xhtml5SinkTest.java
+++ b/doxia-modules/doxia-module-xhtml5/src/test/java/org/apache/maven/doxia/module/xhtml5/Xhtml5SinkTest.java
@@ -95,8 +95,8 @@ protected String getDateBlock(String date) {
/** {@inheritDoc} */
protected String getHeadBlock() {
- return ""
- + "\n\n\n";
+ return "" + "" + EOL + "" + EOL
+ + "" + EOL + "";
}
/** {@inheritDoc} */
@@ -126,32 +126,32 @@ protected String getSectionTitleBlock(String title) {
/** {@inheritDoc} */
protected String getSection1Block(String title) {
- return "";
+ return "";
}
/** {@inheritDoc} */
protected String getSection2Block(String title) {
- return "";
+ return "";
}
/** {@inheritDoc} */
protected String getSection3Block(String title) {
- return "";
+ return "";
}
/** {@inheritDoc} */
protected String getSection4Block(String title) {
- return "";
+ return "";
}
/** {@inheritDoc} */
protected String getSection5Block(String title) {
- return "";
+ return "";
}
/** {@inheritDoc} */
protected String getSection6Block(String title) {
- return "";
+ return "";
}
/** {@inheritDoc} */
@@ -171,17 +171,17 @@ protected String getFooterBlock() {
/** {@inheritDoc} */
protected String getListBlock(String item) {
- return "";
+ return "";
}
/** {@inheritDoc} */
protected String getNumberedListBlock(String item) {
- return "\n- " + item + "
";
+ return "" + EOL + "- " + item + "
";
}
/** {@inheritDoc} */
protected String getDefinitionListBlock(String definum, String definition) {
- return "\n- " + definum + "
\n- " + definition + "
";
+ return "" + EOL + "- " + definum + "
" + EOL + "- " + definition + "
";
}
/** {@inheritDoc} */
@@ -197,24 +197,24 @@ protected String getFigureBlock(String source, String caption) {
/** {@inheritDoc} */
protected String getTableBlock(String cell, String caption) {
return ""
- + "Table caption\ncell |
"
+ + "Table caption" + EOL + "cell |
"
+ "
";
}
@Override
protected String getTableWithHeaderBlock(String... rowPrefixes) {
- return "\n"
- + "\n"
- + "" + rowPrefixes[0] + "0 | \n"
- + "" + rowPrefixes[0] + "1 | \n"
- + "" + rowPrefixes[0] + "2 |
\n"
- + "\n"
- + "" + rowPrefixes[1] + "0 | \n"
- + "" + rowPrefixes[1] + "1 | \n"
- + "" + rowPrefixes[1] + "2 |
\n"
- + "\n"
- + "" + rowPrefixes[2] + "0 | \n"
- + "" + rowPrefixes[2] + "1 | \n"
+ return "" + EOL
+ + "" + EOL
+ + "" + rowPrefixes[0] + "0 | " + EOL
+ + "" + rowPrefixes[0] + "1 | " + EOL
+ + "" + rowPrefixes[0] + "2 |
" + EOL
+ + "" + EOL
+ + "" + rowPrefixes[1] + "0 | " + EOL
+ + "" + rowPrefixes[1] + "1 | " + EOL
+ + "" + rowPrefixes[1] + "2 |
" + EOL
+ + "" + EOL
+ + "" + rowPrefixes[2] + "0 | " + EOL
+ + "" + rowPrefixes[2] + "1 | " + EOL
+ "" + rowPrefixes[2] + "2 |
"
+ "
";
}
@@ -259,7 +259,7 @@ protected String getDivisionBlock(String text) {
/** {@inheritDoc} */
protected String getVerbatimSourceBlock(String text) {
- return "";
+ return "";
}
/** {@inheritDoc} */
@@ -367,7 +367,9 @@ public void testEntities() {
sink.close();
}
- assertEquals("", writer.toString());
+ assertEquals(
+ "",
+ writer.toString());
}
/**
@@ -398,7 +400,7 @@ public void testHead() {
}
String expected =
- "\nTitle"
+ "" + EOL + "Title"
+ "";
String actual = writer.toString();
assertTrue(actual.contains(expected), actual);