mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-25 16:55:39 +00:00
WiP Sysout debugging
This commit is contained in:
parent
ce65c99f6c
commit
7a7712188d
1 changed files with 6 additions and 0 deletions
|
|
@ -76,11 +76,17 @@ public class CommandlineApplicationTest {
|
|||
final String[] args = { "-?" };
|
||||
CommandLineApplication.mainProgram(args);
|
||||
assertThat(CommandLine.getErrorOutput()).isEmpty();
|
||||
log.warn("Philip1");
|
||||
checkForHelp(CommandLine.getOutputLines());
|
||||
log.warn("Philip2");
|
||||
}
|
||||
|
||||
private static void checkForHelp(final List<String> outputLines) {
|
||||
assertThat(outputLines.size()).isPositive();
|
||||
log.warn("!!!!");
|
||||
for (final String s : outputLines)
|
||||
log.warn(s);
|
||||
log.warn("!!!");
|
||||
assertThat(outputLines.stream().filter(l -> l.startsWith("Usage: KoSIT Validator"))).hasSize(1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue