From bfca572d0482e1936cc1e852fd08522c2f9ec10c Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 20 Feb 2021 21:11:20 +0530 Subject: [PATCH] refactoring code snippets --- .../splitstringbynewline/SplitStringByNewLineUnitTest.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/core-java-modules/core-java-string-operations-3/src/test/java/com/baeldung/splitstringbynewline/SplitStringByNewLineUnitTest.java b/core-java-modules/core-java-string-operations-3/src/test/java/com/baeldung/splitstringbynewline/SplitStringByNewLineUnitTest.java index 71b39ce542..1fd8065faf 100644 --- a/core-java-modules/core-java-string-operations-3/src/test/java/com/baeldung/splitstringbynewline/SplitStringByNewLineUnitTest.java +++ b/core-java-modules/core-java-string-operations-3/src/test/java/com/baeldung/splitstringbynewline/SplitStringByNewLineUnitTest.java @@ -4,7 +4,6 @@ import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; public class SplitStringByNewLineUnitTest { - @Test public void givenString_whenSplitByNewLineUsingRegularExpressionPattern_thenReturnsArray() { assertThat("Line1\nLine2\nLine3".split("\\r?\\n|\\r")).containsExactly("Line1", "Line2", "Line3"); @@ -22,6 +21,4 @@ public class SplitStringByNewLineUnitTest { assertThat("Line1\r\nLine2\r\nLine3".split("\\R")).containsExactly("Line1", "Line2", "Line3"); } - - }