// bad args
try { getNode(tree).invoke(bindings, context, long.class, new Class[0], new Object[]{""}); fail(); } catch (ELException e) {}
}
public void testGetMethodInfo() {
Tree tree = null;
Bindings bindings = null;
MethodInfo info = null;
tree = parse("${bad}");
bindings = tree.bind(null, context.getVariableMapper());
try { getNode(tree).getMethodInfo(bindings, context, long.class, new Class[0]); fail(); } catch (ELException e) {}
tree = parse("${var_method_1}");
bindings = tree.bind(null, context.getVariableMapper());
info = getNode(tree).getMethodInfo(bindings, context, long.class, new Class[0]);
assertEquals("method_1", info.getName());
assertTrue(Arrays.equals(new Class[0], info.getParamTypes()));
assertEquals(long.class, info.getReturnType());
tree = parse("${property_method_1}");
bindings = tree.bind(null, context.getVariableMapper());
info = getNode(tree).getMethodInfo(bindings, context, long.class, new Class[0]);
assertEquals("method_1", info.getName());
assertTrue(Arrays.equals(new Class[0], info.getParamTypes()));
assertEquals(long.class, info.getReturnType());