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: - * - */ - 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
  1. " + item + "
"; + return "
    " + EOL + "
  1. " + 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 "\n\n
" + caption + "
" + cell - + "
"; + return "" + EOL + "" + EOL + + "
" + caption + "
" + cell + "
"; } @Override protected String getTableWithHeaderBlock(String... rowPrefixes) { - return "\n\n\n\n\n" - + "\n\n\n\n" - + "\n\n\n" + return "
" + rowPrefixes[0] + "0" + rowPrefixes[0] + "1" - + rowPrefixes[0] + "2
" + rowPrefixes[1] - + "0" + rowPrefixes[1] - + "1" + rowPrefixes[1] + "2
" + rowPrefixes[2] - + "0" + rowPrefixes[2] - + "1" + rowPrefixes[2] + "2
" + EOL + "" + EOL + "" + EOL + "" + EOL + "" + EOL + + "" + EOL + "" + EOL + "" + EOL + "" + EOL + + "" + EOL + "" + EOL + "" + EOL + "" + "
" + rowPrefixes[0] + "0" + + rowPrefixes[0] + "1" + + rowPrefixes[0] + "2
" + rowPrefixes[1] + + "0" + rowPrefixes[1] + + "1" + rowPrefixes[1] + "2
" + rowPrefixes[2] + + "0" + rowPrefixes[2] + + "1" + 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 "
\n

" + title + "

"; + return "
" + EOL + "

" + title + "

"; } /** {@inheritDoc} */ protected String getSection2Block(String title) { - return "
\n

" + title + "

"; + return "
" + EOL + "

" + title + "

"; } /** {@inheritDoc} */ protected String getSection3Block(String title) { - return "
\n

" + title + "

"; + return "
" + EOL + "

" + title + "

"; } /** {@inheritDoc} */ protected String getSection4Block(String title) { - return "
\n

" + title + "

"; + return "
" + EOL + "

" + title + "

"; } /** {@inheritDoc} */ protected String getSection5Block(String title) { - return "
\n
" + title + "
"; + return "
" + EOL + "
" + title + "
"; } /** {@inheritDoc} */ protected String getSection6Block(String title) { - return "
\n
" + title + "
"; + return "
" + EOL + "
" + title + "
"; } /** {@inheritDoc} */ @@ -171,17 +171,17 @@ protected String getFooterBlock() { /** {@inheritDoc} */ protected String getListBlock(String item) { - return ""; + return ""; } /** {@inheritDoc} */ protected String getNumberedListBlock(String item) { - return "
    \n
  1. " + item + "
"; + return "
    " + EOL + "
  1. " + 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 "" - + "\n" + + "" + EOL + "" + "
Table caption
cell
Table caption
cell
"; } @Override protected String getTableWithHeaderBlock(String... rowPrefixes) { - return "\n" - + "\n" - + "\n" - + "\n" - + "\n" - + "\n" - + "\n" - + "\n" - + "\n" - + "\n" - + "\n" - + "\n" + return "
" + rowPrefixes[0] + "0" + rowPrefixes[0] + "1" + rowPrefixes[0] + "2
" + rowPrefixes[1] + "0" + rowPrefixes[1] + "1" + rowPrefixes[1] + "2
" + rowPrefixes[2] + "0" + rowPrefixes[2] + "1
" + EOL + + "" + EOL + + "" + EOL + + "" + EOL + + "" + EOL + + "" + EOL + + "" + EOL + + "" + EOL + + "" + EOL + + "" + EOL + + "" + EOL + + "" + EOL + "" + "
" + rowPrefixes[0] + "0" + rowPrefixes[0] + "1" + rowPrefixes[0] + "2
" + rowPrefixes[1] + "0" + rowPrefixes[1] + "1" + rowPrefixes[1] + "2
" + rowPrefixes[2] + "0" + rowPrefixes[2] + "1" + rowPrefixes[2] + "2
"; } @@ -259,7 +259,7 @@ protected String getDivisionBlock(String text) { /** {@inheritDoc} */ protected String getVerbatimSourceBlock(String text) { - return "
\n
" + text + "
"; + return "
" + EOL + "
" + text + "
"; } /** {@inheritDoc} */ @@ -367,7 +367,9 @@ public void testEntities() { sink.close(); } - assertEquals("
\n

&

\n

&

", writer.toString()); + assertEquals( + "
" + EOL + "

&

" + EOL + "

&

", + writer.toString()); } /** @@ -398,7 +400,7 @@ public void testHead() { } String expected = - "\nTitle" + "" + EOL + "Title" + ""; String actual = writer.toString(); assertTrue(actual.contains(expected), actual);