Thank you Johan for advice. I had the same reason: old JUnit library
On Nov 16, 9:55 pm, Johan Haleby <
johan.hal...@gmail.com> wrote:
> Hi,
>
> I've experienced the same thing once. You must make sure that you have the
> correct jars on classpath and that they're imported on the classpath in the
> correct order. In my case there were two junit jars in classpath in ant and
> the wrong one had precedence over the correct one.
>
> /Johan
>