mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
test framework: output graber should recieve default printer from the very beginning
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user