commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r589329 - /commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/JexlTest.java
Date Sun, 28 Oct 2007 10:49:20 GMT
Author: dion
Date: Sun Oct 28 03:49:19 2007
New Revision: 589329

URL: http://svn.apache.org/viewvc?rev=589329&view=rev
Log:
Add string quoting test for JEXL-16

Modified:
    commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/JexlTest.java

Modified: commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/JexlTest.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/JexlTest.java?rev=589329&r1=589328&r2=589329&view=diff
==============================================================================
--- commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/JexlTest.java (original)
+++ commons/proper/jexl/branches/2.0/src/test/org/apache/commons/jexl/JexlTest.java Sun Oct
28 03:49:19 2007
@@ -416,6 +416,15 @@
         assertExpression(jc, "empty(foo)", Boolean.TRUE);
     }
 
+    /** 
+     * test quoting in strings 
+     */
+    public void testStringQuoting() throws Exception {
+        JexlContext jc = JexlHelper.createContext();
+        assertExpression(jc, "'\"Hello\"'", "\"Hello\"");
+        assertExpression(jc, "\"I'm testing\"", "I'm testing");
+    }
+    
     /**
       *  test some blank strings
       */



Mime
View raw message