WiP Sysout debugging

This commit is contained in:
Philip Helger 2025-08-27 16:21:12 +02:00
parent ce65c99f6c
commit 7a7712188d

View file

@ -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);
}