Commit ce874898 authored by Alexander's avatar Alexander

Restore and improve default no-more-output message

parent 8e2c6fbd
......@@ -200,11 +200,19 @@ public abstract class TestBase {
for (TestPair testPair : testPairs) {
log.info("Testing " + testPair);
if (Terminal.OUT_TEST.isEmpty()) {
if (!Terminal.IN_TEST.isEmpty()) {
failAndLog("The program quitted too early\n"
+ "Please check that your program resets all static values!");
}
failAndLog("Found no more output. There is some serious issue!");
}
String output = popProgramOutput();
switch (testPair.getType()) {
case CHECK_EQUALS:
if (output == null || !testPair.getOutput().equals(output)) {
if (!testPair.getOutput().equals(output)) {
log.info(" Failed!\n");
printLog();
assertEquals(testPair.getOutput(), output);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment