Author: markt Date: Sun Aug 1 21:04:25 2010 New Revision: 981318 URL: http://svn.apache.org/viewvc?rev=981318&view=rev Log: Add an explicit test case for bug 49655
Modified: tomcat/trunk/test/org/apache/el/TestMethodExpressionImpl.java Modified: tomcat/trunk/test/org/apache/el/TestMethodExpressionImpl.java URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/el/TestMethodExpressionImpl.java?rev=981318&r1=981317&r2=981318&view=diff ============================================================================== --- tomcat/trunk/test/org/apache/el/TestMethodExpressionImpl.java (original) +++ tomcat/trunk/test/org/apache/el/TestMethodExpressionImpl.java Sun Aug 1 21:04:25 2010 @@ -311,4 +311,19 @@ public class TestMethodExpressionImpl ex Object r9 = me9.invoke(context, null); assertEquals("ABB[]: Hello AAA from BBB, BBB", r9.toString()); } + + /* + * This is also tested implicitly in numerous places elsewhere in this + * class. + */ + public void testBug49655() throws Exception { + // This is the call the failed + MethodExpression me = factory.createMethodExpression(context, + "#{beanA.setName('New value')}", null, null); + // The rest is to check it worked correctly + me.invoke(context, null); + ValueExpression ve = factory.createValueExpression(context, + "#{beanA.name}", java.lang.String.class); + assertEquals("New value", ve.getValue(context)); + } } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org