Repository: commons-lang Updated Branches: refs/heads/master 06b7cd3a3 -> 04b55bc7c
Use the proper constant Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/04b55bc7 Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/04b55bc7 Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/04b55bc7 Branch: refs/heads/master Commit: 04b55bc7ca0b0ac444fdc8ad01acef8172852a8f Parents: 06b7cd3 Author: Sebb <[email protected]> Authored: Sat Jun 13 00:56:07 2015 +0100 Committer: Sebb <[email protected]> Committed: Sat Jun 13 00:56:07 2015 +0100 ---------------------------------------------------------------------- src/test/java/org/apache/commons/lang3/text/WordUtilsTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-lang/blob/04b55bc7/src/test/java/org/apache/commons/lang3/text/WordUtilsTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/lang3/text/WordUtilsTest.java b/src/test/java/org/apache/commons/lang3/text/WordUtilsTest.java index 7f20d2c..0da57dd 100644 --- a/src/test/java/org/apache/commons/lang3/text/WordUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/text/WordUtilsTest.java @@ -24,6 +24,7 @@ import static org.junit.Assert.assertTrue; import java.lang.reflect.Constructor; import java.lang.reflect.Modifier; +import org.apache.commons.lang3.SystemUtils; import org.junit.Test; /** @@ -52,7 +53,7 @@ public class WordUtilsTest { assertEquals("", WordUtils.wrap("", -1)); // normal - final String systemNewLine = System.getProperty("line.separator"); + final String systemNewLine = SystemUtils.LINE_SEPARATOR; String input = "Here is one line of text that is going to be wrapped after 20 columns."; String expected = "Here is one line of" + systemNewLine + "text that is going" + systemNewLine + "to be wrapped after" + systemNewLine + "20 columns."; @@ -114,7 +115,7 @@ public class WordUtilsTest { assertEquals(expected, WordUtils.wrap(input, -1, "\n", false)); // system newline char - final String systemNewLine = System.getProperty("line.separator"); + final String systemNewLine = SystemUtils.LINE_SEPARATOR; input = "Here is one line of text that is going to be wrapped after 20 columns."; expected = "Here is one line of" + systemNewLine + "text that is going" + systemNewLine + "to be wrapped after" + systemNewLine + "20 columns.";
