mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
print nothing for an ignored test if ignoredMsg is empty
This commit is contained in:
+1
-4
@@ -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);
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user