@Test public void testAddScriptCompilerNullFile() { NullPointerException e = assertThrows(NullPointerException.class, () -> { executor.addScriptCompiler(null); }); assertThat(e.getMessage()).isEqualTo("File cannot be null."); }
@Override public ScriptCompilerAdderImpl addScriptCompiler(final File file) { if (file == null) throw new NullPointerException("File cannot be null."); if (!file.isFile()) throw new IllegalArgumentException("Given file pointer is not actually a file."); return new ScriptCompilerAdderImpl(file, getCommandQueue()); }
BaseCclExecutor extends CclExecutor { @Override public ScriptCompilerAdderImpl addScriptCompiler(final File file) { if (file == null) throw new NullPointerException("File cannot be null."); if (!file.isFile()) throw new IllegalArgumentException("Given file pointer is not actually a file."); return new ScriptCompilerAdderImpl(file, getCommandQueue()); } }
BaseCclExecutor extends CclExecutor { @Override public ScriptCompilerAdderImpl addScriptCompiler(final File file) { if (file == null) throw new NullPointerException("File cannot be null."); if (!file.isFile()) throw new IllegalArgumentException("Given file pointer is not actually a file."); return new ScriptCompilerAdderImpl(file, getCommandQueue()); } BaseCclExecutor();  BaseCclExecutor(final TerminalProperties terminalProperties, final CommandQueue commandQueue); }
BaseCclExecutor extends CclExecutor { @Override public ScriptCompilerAdderImpl addScriptCompiler(final File file) { if (file == null) throw new NullPointerException("File cannot be null."); if (!file.isFile()) throw new IllegalArgumentException("Given file pointer is not actually a file."); return new ScriptCompilerAdderImpl(file, getCommandQueue()); } 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 ScriptCompilerAdderImpl addScriptCompiler(final File file) { if (file == null) throw new NullPointerException("File cannot be null."); if (!file.isFile()) throw new IllegalArgumentException("Given file pointer is not actually a file."); return new ScriptCompilerAdderImpl(file, getCommandQueue()); } 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);  }