@Test public void testDoServiceWithFailingScript() throws Exception { ScriptingService service = createService(); File script = writeScript(false); service.setScriptFilename(script.getCanonicalPath()); AdaptrisMessage msg = AdaptrisMessageFactory.getDefaultInstance().newMessage(); try { execute(service, msg); fail("Service failure expected"); } catch (ServiceException expected) { } 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();  }