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 10d33c0909528c3419dbc906d990475cbab1d21f
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Jun 1 14:58:44 2024 -0400

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

diff --git a/src/test/java/org/apache/commons/jexl3/Issues100Test.java 
b/src/test/java/org/apache/commons/jexl3/Issues100Test.java
index 72afc5ab..bf7bbe91 100644
--- a/src/test/java/org/apache/commons/jexl3/Issues100Test.java
+++ b/src/test/java/org/apache/commons/jexl3/Issues100Test.java
@@ -254,19 +254,15 @@ public static class Foo125 {
         context.set("a", new BigDecimal(1));
         context.set("b", new BigDecimal(3));
         final JexlEngine jexl = new Engine();
-        try {
-            final Object value = jexl.createExpression("a / 
b").evaluate(context);
-            assertNotNull(value);
-        } catch (final JexlException xjexl) {
-            fail("should not occur");
-        }
+        final Object value = jexl.createExpression("a / b").evaluate(context);
+        assertNotNull(value);
         options.setMathContext(MathContext.UNLIMITED);
         options.setMathScale(2);
         try {
             jexl.createExpression("a / b").evaluate(context);
             fail("should fail");
         } catch (final JexlException xjexl) {
-            //ok  to fail
+            // ok to fail
         }
     }
 

Reply via email to