tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r949825 - /tomcat/trunk/test/org/apache/el/TestMethodExpressionImpl.java
Date Mon, 31 May 2010 18:20:39 GMT
Author: markt
Date: Mon May 31 18:20:39 2010
New Revision: 949825

URL: http://svn.apache.org/viewvc?rev=949825&view=rev
Log:
Add some checks that nulls are handled correctly.

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=949825&r1=949824&r2=949825&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/el/TestMethodExpressionImpl.java (original)
+++ tomcat/trunk/test/org/apache/el/TestMethodExpressionImpl.java Mon May 31 18:20:39 2010
@@ -71,6 +71,8 @@ public class TestMethodExpressionImpl ex
         assertEquals("Hello JUnit from Tomcat", me2.invoke(context, null));
         assertEquals("Hello JUnit from Tomcat", me2.invoke(context, new Object[] { "JUnit2"
}));
         assertEquals("Hello JUnit2 from Tomcat", me3.invoke(context, new Object[] { "JUnit2"
}));
+        assertEquals("Hello JUnit from Tomcat", me2.invoke(context, new Object[] { null }));
+        assertEquals("Hello null from Tomcat", me3.invoke(context, new Object[] { null }));
     }
 
 }



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


Mime
View raw message