BAEL-4702 Refactoring
This commit is contained in:
parent
4bb429ef5b
commit
60af7e8443
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user