BAEL-4702 Refactoring

This commit is contained in:
unknown 2021-03-26 03:51:41 +05:30
parent 4bb429ef5b
commit 60af7e8443

View File

@ -6,7 +6,7 @@ import static org.assertj.core.api.Assertions.assertThat;
public class SplitStringByNewLineUnitTest {
@Test
public void givenString_whenSplitByNewLineUsingSystemLineSeparator_thenReturnsArray() {
assertThat("Line1\r\nLine2\r\nLine3".split(System.lineSeparator())).containsExactly("Line1", "Line2", "Line3");
assertThat("Line1\nLine2\nLine3".split(System.lineSeparator())).containsExactly("Line1", "Line2", "Line3");
}
@Test