@Test public void testExecute1() throws Throwable { Collection<String> returnNames = new ArrayList(); returnNames.add("testString"); HashMap result = (HashMap) new BSHMethod("testBSHMethodBshData", false).execute(new HashMap(), returnNames); assertEquals(1, result.size(), "result.size()"); assertNull(result.get("testString"), "(HashMap) result.get(\"testString\")"); }
public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execute(Map arguments, Collection returnNames); String toString(); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execute(Map arguments, Collection returnNames); String toString();  }