From b8e0a03e8d39afbe7edee5654401c349369a5c55 Mon Sep 17 00:00:00 2001 From: anna Date: Fri, 23 Jul 2010 15:09:12 +0400 Subject: [PATCH] test framework: output graber should recieve default printer from the very beginning --- plugins/junit/src/com/intellij/execution/junit/TestObject.java | 1 + .../testng/configuration/TestNGRunnableState.java | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/junit/src/com/intellij/execution/junit/TestObject.java b/plugins/junit/src/com/intellij/execution/junit/TestObject.java index 190e397270b7..dceaf3e1518d 100644 --- a/plugins/junit/src/com/intellij/execution/junit/TestObject.java +++ b/plugins/junit/src/com/intellij/execution/junit/TestObject.java @@ -264,6 +264,7 @@ public abstract class TestObject implements JavaCommandLine { final JUnitTreeConsoleView consoleView = new JUnitTreeConsoleView(consoleProperties, getRunnerSettings(), getConfigurationSettings(), unboundOutputRoot); consoleView.initUI(); consoleView.attachToProcess(handler); + unboundOutputRoot.setPrinter(consoleView.getPrinter()); final TestsPacketsReceiver packetsReceiver = new TestsPacketsReceiver(consoleView) { @Override diff --git a/plugins/testng/src/com/theoryinpractice/testng/configuration/TestNGRunnableState.java b/plugins/testng/src/com/theoryinpractice/testng/configuration/TestNGRunnableState.java index 9adb1a1e2a33..d9669df9ee23 100644 --- a/plugins/testng/src/com/theoryinpractice/testng/configuration/TestNGRunnableState.java +++ b/plugins/testng/src/com/theoryinpractice/testng/configuration/TestNGRunnableState.java @@ -129,6 +129,7 @@ public class TestNGRunnableState extends JavaCommandLineState { final TreeRootNode unboundOutputRoot = new TreeRootNode(); final TestNGConsoleView console = new TestNGConsoleView(config, runnerSettings, myConfigurationPerRunnerSettings, unboundOutputRoot); console.initUI(); + unboundOutputRoot.setPrinter(console.getPrinter()); for (RunConfigurationExtension ext : Extensions.getExtensions(RunConfigurationExtension.EP_NAME)) { ext.handleStartProcess(config, processHandler); }