You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by he...@apache.org on 2018/02/07 10:04:01 UTC

[commons-jexl] 03/03: JEXL-252, JEXL-250: hardened logic and more tests

This is an automated email from the ASF dual-hosted git repository.

henrib pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jexl.git

commit dbd18ec5d73b83d12fffeb3ed1080632257b09da
Author: Henri Biestro <he...@apache.org>
AuthorDate: Wed Feb 7 11:03:28 2018 +0100

    JEXL-252, JEXL-250: hardened logic and more tests
---
 src/test/java/org/apache/commons/jexl3/Issues200Test.java | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/test/java/org/apache/commons/jexl3/Issues200Test.java b/src/test/java/org/apache/commons/jexl3/Issues200Test.java
index 3a59515..a19d6cf 100644
--- a/src/test/java/org/apache/commons/jexl3/Issues200Test.java
+++ b/src/test/java/org/apache/commons/jexl3/Issues200Test.java
@@ -345,7 +345,7 @@ public class Issues200Test extends JexlTestCase {
     @Test
     public void test250() throws Exception {
         MapContext ctx = new MapContext();
-        HashMap<Object,Object> x = new HashMap<Object, Object> ();
+        HashMap<Object, Object> x = new HashMap<Object, Object>();
         x.put(2, "123456789");
         ctx.set("x", x);
         JexlEngine engine = new JexlBuilder().strict(true).silent(false).create();
@@ -379,12 +379,12 @@ public class Issues200Test extends JexlTestCase {
         } catch (JexlException xany) {
             Assert.fail("Should have evaluated to null");
         }
-                try {
-        stmt = "y?.3.class.name";
-        script = engine.createScript(stmt);
-        result = script.execute(ctx);
-        Assert.assertNull(result);
-        } catch(JexlException xany) {
+        try {
+            stmt = "y?.3.class.name";
+            script = engine.createScript(stmt);
+            result = script.execute(ctx);
+            Assert.assertNull(result);
+        } catch (JexlException xany) {
             Assert.fail("Should have evaluated to null");
         }
     }

-- 
To stop receiving notification emails like this one, please contact
henrib@apache.org.