tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r904943 - /tomcat/trunk/test/org/apache/el/TestELEvaluation.java
Date Sun, 31 Jan 2010 00:56:48 GMT
Author: markt
Date: Sun Jan 31 00:56:47 2010
New Revision: 904943

URL: http://svn.apache.org/viewvc?rev=904943&view=rev
Log:
Test mixing ${...} and #{...} in the same expression

Modified:
    tomcat/trunk/test/org/apache/el/TestELEvaluation.java

Modified: tomcat/trunk/test/org/apache/el/TestELEvaluation.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/el/TestELEvaluation.java?rev=904943&r1=904942&r2=904943&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/el/TestELEvaluation.java (original)
+++ tomcat/trunk/test/org/apache/el/TestELEvaluation.java Sun Jan 31 00:56:47 2010
@@ -171,6 +171,22 @@
         assertTrue(null == null);
     }
 
+    /**
+     * Test mixing ${...} and #{...} in the same expression.
+     */
+    public void testMixedTypes() {
+        // Mixing types should throw an error
+        Exception e = null;
+        try {
+            evaluateExpression("${1+1}#{1+1}");
+        } catch (ELException el) {
+            e = el;
+        }
+        assertNotNull(e);
+    }
+
+
+
     // ************************************************************************
 
     private String evaluateExpression(String expression) {



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


Mime
View raw message