fixed platform independent line separator in CliToolTests

This commit is contained in:
uboness 2014-08-02 21:02:22 +02:00
parent 95762e8126
commit b667bcdedf
1 changed files with 9 additions and 9 deletions

View File

@ -167,13 +167,13 @@ public class CliToolTests extends CliToolTestCase {
int count = writeCounter.incrementAndGet();
switch (count) {
case 1:
assertThat(msg, equalTo("\n"));
assertThat(msg, equalTo(System.lineSeparator()));
break;
case 2:
assertThat(msg, equalTo("cmd1 help\n"));
assertThat(msg, equalTo("cmd1 help" + System.lineSeparator()));
break;
case 3:
assertThat(msg, equalTo("\n"));
assertThat(msg, equalTo(System.lineSeparator()));
break;
default:
fail("written more than expected");
@ -202,13 +202,13 @@ public class CliToolTests extends CliToolTestCase {
int count = writeCounter.incrementAndGet();
switch (count) {
case 1:
assertThat(msg, equalTo("\n"));
assertThat(msg, equalTo(System.lineSeparator()));
break;
case 2:
assertThat(msg, equalTo("tool help\n"));
assertThat(msg, equalTo("tool help"+System.lineSeparator()));
break;
case 3:
assertThat(msg, equalTo("\n"));
assertThat(msg, equalTo(System.lineSeparator()));
break;
default:
fail("written more than expected");
@ -242,13 +242,13 @@ public class CliToolTests extends CliToolTestCase {
int count = writeCounter.incrementAndGet();
switch (count) {
case 1:
assertThat(msg, equalTo("\n"));
assertThat(msg, equalTo(System.lineSeparator()));
break;
case 2:
assertThat(msg, equalTo("cmd1 help\n"));
assertThat(msg, equalTo("cmd1 help" + System.lineSeparator()));
break;
case 3:
assertThat(msg, equalTo("\n"));
assertThat(msg, equalTo(System.lineSeparator()));
break;
default:
fail("written more than expected");