Return-Path: Delivered-To: apmail-commons-commits-archive@locus.apache.org Received: (qmail 1115 invoked from network); 28 Oct 2007 10:49:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Oct 2007 10:49:44 -0000 Received: (qmail 750 invoked by uid 500); 28 Oct 2007 10:49:31 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 693 invoked by uid 500); 28 Oct 2007 10:49:31 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 684 invoked by uid 99); 28 Oct 2007 10:49:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Oct 2007 03:49:31 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Oct 2007 10:49:48 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id A17851A9832; Sun, 28 Oct 2007 03:49:20 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@commons.apache.org From: dion@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071028104920.A17851A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 */