@Test public void testSetOutputStream() throws Exception { final OutputStream stream = mock(OutputStream.class); final OutputType type = OutputType.CCL_SESSION; final OutputStreamConfiguration config = mock(OutputStreamConfiguration.class); whenNew(OutputStreamConfiguration.class).withArguments(stream, type).thenReturn(config); assertThat(executor.getOutputStreamConfiguration()).isNull(); executor.setOutputStream(stream, type); assertThat(executor.getOutputStreamConfiguration()).isEqualTo(config); }
@Override public void setOutputStream(final OutputStream stream, final OutputType outputType) { this.outputStreamConfiguration = new OutputStreamConfiguration(stream, outputType); }
BaseCclExecutor extends CclExecutor { @Override public void setOutputStream(final OutputStream stream, final OutputType outputType) { this.outputStreamConfiguration = new OutputStreamConfiguration(stream, outputType); } }
BaseCclExecutor extends CclExecutor { @Override public void setOutputStream(final OutputStream stream, final OutputType outputType) { this.outputStreamConfiguration = new OutputStreamConfiguration(stream, outputType); } BaseCclExecutor();  BaseCclExecutor(final TerminalProperties terminalProperties, final CommandQueue commandQueue); }
BaseCclExecutor extends CclExecutor { @Override public void setOutputStream(final OutputStream stream, final OutputType outputType) { this.outputStreamConfiguration = new OutputStreamConfiguration(stream, outputType); } BaseCclExecutor();  BaseCclExecutor(final TerminalProperties terminalProperties, final CommandQueue commandQueue); @Override DynamicCompilerAdderImpl addDynamicCompiler(final File includeFile); @Override ScriptCompilerAdderImpl addScriptCompiler(final File file); @Override ScriptDropAdder addScriptDropper(final String scriptName); @Override ScriptExecutionAdder addScriptExecution(final String scriptName); @Override void execute(); @Override void setOutputStream(final OutputStream stream, final OutputType outputType); @Override void setTerminalProperties(final TerminalProperties terminalProperties); }
BaseCclExecutor extends CclExecutor { @Override public void setOutputStream(final OutputStream stream, final OutputType outputType) { this.outputStreamConfiguration = new OutputStreamConfiguration(stream, outputType); } BaseCclExecutor();  BaseCclExecutor(final TerminalProperties terminalProperties, final CommandQueue commandQueue); @Override DynamicCompilerAdderImpl addDynamicCompiler(final File includeFile); @Override ScriptCompilerAdderImpl addScriptCompiler(final File file); @Override ScriptDropAdder addScriptDropper(final String scriptName); @Override ScriptExecutionAdder addScriptExecution(final String scriptName); @Override void execute(); @Override void setOutputStream(final OutputStream stream, final OutputType outputType); @Override void setTerminalProperties(final TerminalProperties terminalProperties);  }