@Test public void testService() throws Exception { AdaptrisMessage msg = AdaptrisMessageFactory.getDefaultInstance().newMessage(); msg.addMetadata(MY_METADATA_KEY, MY_METADATA_VALUE); ScriptingService service = createService(); File script = writeScript(true); service.setScriptFilename(script.getCanonicalPath()); execute(service, msg); assertTrue(msg.containsKey(MY_METADATA_KEY)); assertNotSame(MY_METADATA_VALUE, msg.getMetadataValue(MY_METADATA_KEY)); assertEquals(new StringBuffer(MY_METADATA_VALUE).reverse().toString(), msg.getMetadataValue(MY_METADATA_KEY)); 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();  }