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

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

commit 904a3952fd8f0da40073852aaa71b2929032cf3a
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Jun 1 15:15:16 2024 -0400

    Let JUnit handle exception
---
 src/test/java/org/apache/commons/jexl3/Issues200Test.java | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/src/test/java/org/apache/commons/jexl3/Issues200Test.java 
b/src/test/java/org/apache/commons/jexl3/Issues200Test.java
index e9e11f1f..645167be 100644
--- a/src/test/java/org/apache/commons/jexl3/Issues200Test.java
+++ b/src/test/java/org/apache/commons/jexl3/Issues200Test.java
@@ -600,16 +600,11 @@ public class Issues200Test extends JexlTestCase {
     @Test
     public void test275b() throws Exception {
         final JexlContext ctxt = new MapContext();
-        //ctxt.set("out", System.out);
+        // ctxt.set("out", System.out);
         final JexlEngine jexl = new 
JexlBuilder().strict(true).safe(true).create();
         final JexlScript e = jexl.createScript("var xyz = xyz");
-        try {
-            final Object o = e.execute(ctxt);
-            assertNull(o);
-        } catch (final JexlException.Variable xvar) {
-            fail("should not have thrown");
-            // assertEquals("xyz", xvar.getVariable());
-        }
+        final Object o = e.execute(ctxt);
+        assertNull(o);
     }
 
     @Test

Reply via email to