use of javax.el.MethodExpression in project tomcat by apache.
the class TestMethodExpressionImpl method testInvokeWithVarArgsAABBB.
@Test
public void testInvokeWithVarArgsAABBB() throws Exception {
MethodExpression me6 = factory.createMethodExpression(context, "${beanC.sayHello(beanAA,beanBBB,beanBBB)}", null, null);
Object r6 = me6.invoke(context, null);
assertEquals("ABB[]: Hello AA from BBB, BBB", r6.toString());
}
use of javax.el.MethodExpression in project tomcat by apache.
the class TestMethodExpressionImpl method testBugPrimitives.
@Test
public void testBugPrimitives() throws Exception {
MethodExpression me = factory.createMethodExpression(context, "${beanA.setValLong(5)}", null, null);
me.invoke(context, null);
ValueExpression ve = factory.createValueExpression(context, "#{beanA.valLong}", java.lang.String.class);
assertEquals("5", ve.getValue(context));
}
Aggregations