From 2aaec1fc47ce65043c862397c95c3f903745f798 Mon Sep 17 00:00:00 2001 From: markt Date: Sun, 1 Aug 2010 21:04:25 +0000 Subject: [PATCH] Add an explicit test case for bug 49655 git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@981318 13f79535-47bb-0310-9956-ffa450edef68 --- test/org/apache/el/TestMethodExpressionImpl.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/org/apache/el/TestMethodExpressionImpl.java b/test/org/apache/el/TestMethodExpressionImpl.java index 095d9f96f..4a917afea 100644 --- a/test/org/apache/el/TestMethodExpressionImpl.java +++ b/test/org/apache/el/TestMethodExpressionImpl.java @@ -311,4 +311,19 @@ public class TestMethodExpressionImpl extends TestCase { 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)); + } } -- 2.11.0