@Test public void testInit() throws Exception { ScriptingService service = new ScriptingService(); try { service.init(); fail("Service initialised w/o a language"); } catch (Exception expected) { ; } service.setLanguage("jruby"); service.setScriptFilename("/BLAHBLAHBLAHBLAHBLAH/BLAHBLAHBLAHBLAH"); try { service.init(); fail("Service initialised with no idiotic filename"); } catch (Exception expected) { ; } File script = writeScript(false); service.setScriptFilename(script.getCanonicalPath()); LifecycleHelper.init(service); LifecycleHelper.close(service); delete(script); }
public void setScriptFilename(String s) { scriptFilename = Args.notBlank(s, "scriptFilename"); }
ScriptingService extends ScriptingServiceImp { public void setScriptFilename(String s) { scriptFilename = Args.notBlank(s, "scriptFilename"); } }
ScriptingService extends ScriptingServiceImp { public void setScriptFilename(String s) { scriptFilename = Args.notBlank(s, "scriptFilename"); } ScriptingService();  ScriptingService(String uniqueId); }
ScriptingService extends ScriptingServiceImp { public void setScriptFilename(String s) { scriptFilename = Args.notBlank(s, "scriptFilename"); } ScriptingService();  ScriptingService(String uniqueId); String getScriptFilename(); void setScriptFilename(String s); @Override void prepare(); }
ScriptingService extends ScriptingServiceImp { public void setScriptFilename(String s) { scriptFilename = Args.notBlank(s, "scriptFilename"); } ScriptingService();  ScriptingService(String uniqueId); String getScriptFilename(); void setScriptFilename(String s); @Override void prepare();  }