StrBuilderAppendInsertTest and WordUtilsTest: replace 
lang3.SystemUtils#LINE_SEPARATOR with System#lineSeparator


Project: http://git-wip-us.apache.org/repos/asf/commons-text/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-text/commit/8d371116
Tree: http://git-wip-us.apache.org/repos/asf/commons-text/tree/8d371116
Diff: http://git-wip-us.apache.org/repos/asf/commons-text/diff/8d371116

Branch: refs/heads/master
Commit: 8d37111622aaa576198d081db7613eff8ba46724
Parents: 144ee0e
Author: Pascal Schumacher <pascalschumac...@gmx.net>
Authored: Sun Dec 18 17:58:00 2016 +0100
Committer: Pascal Schumacher <pascalschumac...@gmx.net>
Committed: Sun Dec 18 17:58:00 2016 +0100

----------------------------------------------------------------------
 .../org/apache/commons/text/StrBuilderAppendInsertTest.java     | 4 +---
 src/test/java/org/apache/commons/text/WordUtilsTest.java        | 5 ++---
 2 files changed, 3 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-text/blob/8d371116/src/test/java/org/apache/commons/text/StrBuilderAppendInsertTest.java
----------------------------------------------------------------------
diff --git 
a/src/test/java/org/apache/commons/text/StrBuilderAppendInsertTest.java 
b/src/test/java/org/apache/commons/text/StrBuilderAppendInsertTest.java
index 228c8df..95a4adf 100644
--- a/src/test/java/org/apache/commons/text/StrBuilderAppendInsertTest.java
+++ b/src/test/java/org/apache/commons/text/StrBuilderAppendInsertTest.java
@@ -26,15 +26,13 @@ import java.util.Collection;
 import java.util.Collections;
 import java.util.Iterator;
 
-import org.apache.commons.lang3.SystemUtils;
-
 /**
  * Unit tests for {@link StrBuilder}.
  */
 public class StrBuilderAppendInsertTest {
 
     /** The system line separator. */
-    private static final String SEP = SystemUtils.LINE_SEPARATOR;
+    private static final String SEP = System.lineSeparator();
 
     /** Test subclass of Object, with a toString method. */
     private static final Object FOO = new Object() {

http://git-wip-us.apache.org/repos/asf/commons-text/blob/8d371116/src/test/java/org/apache/commons/text/WordUtilsTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/text/WordUtilsTest.java 
b/src/test/java/org/apache/commons/text/WordUtilsTest.java
index 6b57072..0ab8b09 100644
--- a/src/test/java/org/apache/commons/text/WordUtilsTest.java
+++ b/src/test/java/org/apache/commons/text/WordUtilsTest.java
@@ -24,7 +24,6 @@ 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;
 
 /**
@@ -53,7 +52,7 @@ public class WordUtilsTest {
         assertEquals("", WordUtils.wrap("", -1));
         
         // normal
-        final String systemNewLine = SystemUtils.LINE_SEPARATOR;
+        final String systemNewLine = System.lineSeparator();
         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.";
@@ -115,7 +114,7 @@ public class WordUtilsTest {
         assertEquals(expected, WordUtils.wrap(input, -1, "\n", false));
 
         // system newline char
-        final String systemNewLine = SystemUtils.LINE_SEPARATOR;
+        final String systemNewLine = System.lineSeparator();
         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.";

Reply via email to