tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1570165 - /tomcat/trunk/test/org/apache/el/TestMethodExpressionImpl.java
Date Thu, 20 Feb 2014 12:12:15 GMT
Author: markt
Date: Thu Feb 20 12:12:15 2014
New Revision: 1570165

URL: http://svn.apache.org/r1570165
Log:
Simplify

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=1570165&r1=1570164&r2=1570165&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/el/TestMethodExpressionImpl.java (original)
+++ tomcat/trunk/test/org/apache/el/TestMethodExpressionImpl.java Thu Feb 20 12:12:15 2014
@@ -86,12 +86,6 @@ public class TestMethodExpressionImpl {
 
     @Test
     public void testIsParametersProvided() {
-        TesterBeanB beanB = new TesterBeanB();
-        beanB.setName("Tomcat");
-        ValueExpression var =
-            factory.createValueExpression(beanB, TesterBeanB.class);
-        context.getVariableMapper().setVariable("beanB", var);
-
         MethodExpression me1 = factory.createMethodExpression(
                 context, "${beanB.getName}", String.class, new Class<?>[] {});
         MethodExpression me2 = factory.createMethodExpression(
@@ -104,12 +98,6 @@ public class TestMethodExpressionImpl {
 
     @Test
     public void testInvoke() {
-        TesterBeanB beanB = new TesterBeanB();
-        beanB.setName("B");
-
-        context.getVariableMapper().setVariable("beanB",
-                factory.createValueExpression(beanB, TesterBeanB.class));
-
         MethodExpression me1 = factory.createMethodExpression(
                 context, "${beanB.getName}", String.class, new Class<?>[] {});
         MethodExpression me2 = factory.createMethodExpression(



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message