public void testCall() throws Exception {
BSFEngine bsfEngine = manager.loadScriptingEngine("groovy");
manager.declareBean("myvar", "hello", String.class);
Object myvar = manager.lookupBean("myvar");
String result = (String) bsfEngine.call(myvar, "reverse", new Object[]{});
assertEquals("olleh", result);
}
public void testExecFile() throws Exception {
execScript("src/test/resources/groovy/script/MapFromList.groovy");