Use junit 3.8.x and put the jars in your ant lib folder. It should work.
Unfortunately ant was a bit tricky wrt junit.jar and classpath and there
was no "perfect" solution.
Stefano
Jonas Arnsmann ha scritto:
Hi there,
I am developing a couple of custom Mailets for James 2.3.1 and i'm
currently
trying to figure out how to realize automatic JUnit Tests for my Mailets..
Looking through the code in the Apache SVN
(http://svn.apache.org/repos/asf/james/server/
tags/build_2_3_1/src/test/org/apache/james/) shows me, that you already
have some JUnit
test code available.
However this code fails to run on my machine (have tried it on
Windows/Linux and even OS X)
Junit 4.4 was not included in the lib folder of the original distribution
(include in build.xml was missing), so i thought this might be the issue...
I fixed this by editing build.xml:
<include name="${junit.jar}"/>
as well as include.properties:
# ----- JUnit tests -----
junit.jar=junit-4.4.jar
But the ANT script still keeps failing, when i execute the target
run-unit-tests
(log is snipped, this happens for ALL tests executed)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]