On Fri, May 31, 2013 at 9:59 AM, Emmanuel Bourg <ebo...@apache.org> wrote:

> Hi,
>
> I observed a test failure using JUnit 4.11 with the JEXL 2.x tests:
>
> Tests in error:
>   testCalculations(org.apache.commons.jexl2.ArithmeticTest):
> org.apache.commons.jexl2.junit.Asserter.assertExpression@95![0,5]: '3 /
> 0;' divide error
>
>
> This doesn't happen with JUnit 4.10. JEXL 3 doesn't seem to be affected.
>
> After looking at the code I don't understand why the evaluation of the
> expression is affected by the version of JUnit used.
>
> What's the trick?
>

One thing to watch out for is that test method execution order is 'random'.
Aside from that, I'm not sure where to go but the debugger.

Gary


>
>
> Emmanuel Bourg
>
>


-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Reply via email to