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 32a2324313a6be381a533cb9aa81abbb6bf8f461 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sat Jun 1 18:33:45 2024 -0400 Let JUnit handle exception --- src/test/java/org/apache/commons/jexl3/LexicalTest.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/test/java/org/apache/commons/jexl3/LexicalTest.java b/src/test/java/org/apache/commons/jexl3/LexicalTest.java index 18fb1bcf..d37361a4 100644 --- a/src/test/java/org/apache/commons/jexl3/LexicalTest.java +++ b/src/test/java/org/apache/commons/jexl3/LexicalTest.java @@ -446,15 +446,10 @@ public class LexicalTest { @Test public void testConst2c() { - final JexlFeatures f = new JexlFeatures(); final JexlEngine jexl = new JexlBuilder().strict(true).create(); - for(final String op : Arrays.asList("=", "+=", "-=", "/=", "*=", "%=", "<<=", ">>=", ">>>=", "^=", "&=", "|=")) { - try { - final JexlScript script = jexl.createScript("{ const foo = 42; } { let foo = 0; foo " + op + " 1; }"); - assertNotNull(script); - } catch (final JexlException.Parsing xparse) { - fail(xparse.toString()); - } + for (final String op : Arrays.asList("=", "+=", "-=", "/=", "*=", "%=", "<<=", ">>=", ">>>=", "^=", "&=", "|=")) { + final JexlScript script = jexl.createScript("{ const foo = 42; } { let foo = 0; foo " + op + " 1; }"); + assertNotNull(script); } }