print nothing for an ignored test if ignoredMsg is empty

This commit is contained in:
Sergey Simonchik
2014-01-17 15:37:44 +04:00
parent 7ddc0704e0
commit babf29a948
2 changed files with 2 additions and 5 deletions
@@ -69,10 +69,7 @@ public class TestIgnoredState extends AbstractState {
if (myText != null) {
printer.print(myText, ConsoleViewContentType.SYSTEM_OUTPUT);
}
if (StringUtil.isEmptyOrSpaces(myStacktrace)) {
printer.print(CompositePrintable.NEW_LINE, ConsoleViewContentType.SYSTEM_OUTPUT);
}
else {
if (!StringUtil.isEmptyOrSpaces(myStacktrace)) {
printer.print(CompositePrintable.NEW_LINE, ConsoleViewContentType.ERROR_OUTPUT);
printer.mark();
printer.print(myStacktrace, ConsoleViewContentType.ERROR_OUTPUT);
@@ -394,7 +394,7 @@ public class SMTRunnerConsoleTest extends BaseSMTRunnerTestCase {
myEventsProcessor.onTestOutput(new TestOutputEvent("my_test", "stdout1 ", true));
myEventsProcessor.onTestOutput(new TestOutputEvent("my_test", "stderr1 ", false));
assertAllOutputs(myMockResettablePrinter, "stdout1 ", "stderr1 ", "\nignored msg\n");
assertAllOutputs(myMockResettablePrinter, "stdout1 ", "stderr1 ", "\nignored msg");
final MockPrinter mockPrinter1 = new MockPrinter(true);
mockPrinter1.onNewAvailable(myTest1);