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 0deb3e29a4c51af3d7afc9c716872fd1013650bb
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Jun 1 15:27:13 2024 -0400

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

diff --git a/src/test/java/org/apache/commons/jexl3/Issues300Test.java 
b/src/test/java/org/apache/commons/jexl3/Issues300Test.java
index fd7b12e8..542c6ceb 100644
--- a/src/test/java/org/apache/commons/jexl3/Issues300Test.java
+++ b/src/test/java/org/apache/commons/jexl3/Issues300Test.java
@@ -564,24 +564,15 @@ public class Issues300Test {
         final JxltEngine jxlt = jexl.createJxltEngine();
         final JexlContext context = new MapContext();
 
-        final String[] ins = {
-                "${'{'}", "${\"{\"}", "${\"{}\"}", "${'{42}'}", 
"${\"{\\\"\\\"}\"}"
-        };
-        final String[] ctls = {
-                "{", "{", "{}", "{42}", "{\"\"}"
-        };
+        final String[] ins = { "${'{'}", "${\"{\"}", "${\"{}\"}", "${'{42}'}", 
"${\"{\\\"\\\"}\"}" };
+        final String[] ctls = { "{", "{", "{}", "{42}", "{\"\"}" };
         StringWriter strw;
         JxltEngine.Template template;
         String output;
 
         for (int i = 0; i < ins.length; ++i) {
             final String src = ins[i];
-            try {
-                template = jxlt.createTemplate("$$", new StringReader(src));
-            } catch (final JexlException xany) {
-                fail(src);
-                throw xany;
-            }
+            template = jxlt.createTemplate("$$", new StringReader(src));
             strw = new StringWriter();
             template.evaluate(context, strw);
             output = strw.toString();

Reply via email to