#67 [CLI,DAEMON] Return proper return codes / status codes

This commit is contained in:
Andreas Penski 2020-09-02 12:34:20 +00:00
parent fa7faf9961
commit f2223552ad
21 changed files with 424 additions and 248 deletions

View file

@ -53,14 +53,14 @@ public class CheckAssertionActionTest {
@Before
public void setup() throws IOException {
this.commandLine = new CommandLine();
this.commandLine.activate();
CommandLine.activate();
}
@Test
public void testEmptyInput() {
final CheckAssertionAction a = new CheckAssertionAction(new Assertions(), TestObjectFactory.createProcessor());
a.check(new CheckAction.Bag(InputFactory.read(SAMPLE), new CreateReportInput()));
assertThat(this.commandLine.getErrorOutput()).contains("Can not find assertions for");
assertThat(CommandLine.getErrorOutput()).contains("Can not find assertions for");
}
@Test
@ -72,6 +72,6 @@ public class CheckAssertionActionTest {
final CheckAssertionAction a = new CheckAssertionAction(assertions, TestObjectFactory.createProcessor());
a.check(bag);
assertThat(this.commandLine.getErrorOutput()).contains("Assertion mismatch");
assertThat(CommandLine.getErrorOutput()).contains("Assertion mismatch");
}
}