This repository has been archived on 2026-01-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
apache-commons-jexl/001-Fix-tests.patch
Orion Poplawski a4e222e472 - Update to current maven spec guidelines to fix build (bug 979497)
- Add patch to fix test with junit 4.11
2013-06-28 14:57:21 -06:00

21 lines
674 B
Diff

Description: Fix a test failure with JUnit 4.11 due to the out of order
execution of the test methods. This issue is fixed in JEXL 3.
Author: Emmanuel Bourg
Forwarded: not-needed
--- a/src/test/java/org/apache/commons/jexl2/ArithmeticTest.java
+++ b/src/test/java/org/apache/commons/jexl2/ArithmeticTest.java
@@ -137,6 +137,7 @@
* test some simple mathematical calculations
*/
public void testCalculations() throws Exception {
+ JexlThreadedArithmetic.setLenient(Boolean.TRUE);
asserter.setVariable("foo", new Integer(2));
@@ -347,4 +348,4 @@
}
debuggerCheck(jexl);
}
-}
\ No newline at end of file
+}