fixed platform independent line separator in CliToolTests
This commit is contained in:
parent
95762e8126
commit
b667bcdedf
|
@ -167,13 +167,13 @@ public class CliToolTests extends CliToolTestCase {
|
||||||
int count = writeCounter.incrementAndGet();
|
int count = writeCounter.incrementAndGet();
|
||||||
switch (count) {
|
switch (count) {
|
||||||
case 1:
|
case 1:
|
||||||
assertThat(msg, equalTo("\n"));
|
assertThat(msg, equalTo(System.lineSeparator()));
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
assertThat(msg, equalTo("cmd1 help\n"));
|
assertThat(msg, equalTo("cmd1 help" + System.lineSeparator()));
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
assertThat(msg, equalTo("\n"));
|
assertThat(msg, equalTo(System.lineSeparator()));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
fail("written more than expected");
|
fail("written more than expected");
|
||||||
|
@ -202,13 +202,13 @@ public class CliToolTests extends CliToolTestCase {
|
||||||
int count = writeCounter.incrementAndGet();
|
int count = writeCounter.incrementAndGet();
|
||||||
switch (count) {
|
switch (count) {
|
||||||
case 1:
|
case 1:
|
||||||
assertThat(msg, equalTo("\n"));
|
assertThat(msg, equalTo(System.lineSeparator()));
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
assertThat(msg, equalTo("tool help\n"));
|
assertThat(msg, equalTo("tool help"+System.lineSeparator()));
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
assertThat(msg, equalTo("\n"));
|
assertThat(msg, equalTo(System.lineSeparator()));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
fail("written more than expected");
|
fail("written more than expected");
|
||||||
|
@ -242,13 +242,13 @@ public class CliToolTests extends CliToolTestCase {
|
||||||
int count = writeCounter.incrementAndGet();
|
int count = writeCounter.incrementAndGet();
|
||||||
switch (count) {
|
switch (count) {
|
||||||
case 1:
|
case 1:
|
||||||
assertThat(msg, equalTo("\n"));
|
assertThat(msg, equalTo(System.lineSeparator()));
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
assertThat(msg, equalTo("cmd1 help\n"));
|
assertThat(msg, equalTo("cmd1 help" + System.lineSeparator()));
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
assertThat(msg, equalTo("\n"));
|
assertThat(msg, equalTo(System.lineSeparator()));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
fail("written more than expected");
|
fail("written more than expected");
|
||||||
|
|
Loading…
Reference in New Issue