That you are using JUnit 3.5 with Ant 1.2.
The Ant documentation says it is compatible with JUnit 3.0 and above but the
'above' assertion suddenly stopped the day JUnit 3.5 was released. A slight
change in the interface of JUnit was made in 3.5 making it non-backward
compatible.
The workaround to this problem is either to use Ant 1.3 beta which is
compatible with both JUnit <= 3.5 or to use JUnit versions prior to 3.5 with
Ant 1.2
Cheers,
----- Original Message -----
From: "Spencer A Marks" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 11, 2001 1:55 AM
Subject: Problem with java task and JUnit on Linux
> Hi,
>
> Can someone shed some light on what this error means:
>
> (Relevant build.xml below.)
>
> Thanks, S.
>
> [junit] Running com.digisolutions.AllTests
>
> BUILD FAILED
>
> java.lang.AbstractMethodError
> at junit.framework.TestResult.addFailure(TestResult.java:46)
> at junit.framework.TestResult.runProtected(TestResult.java:127)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:121)
> at junit.framework.TestSuite.runTest(TestSuite.java:157)
> at junit.framework.TestSuite.run(TestSuite.java:152)
> at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRu
nner.java:202)
> at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.jav
a:268)
> at org.apache.tools.ant.Target.execute(Target.java:142)
> at org.apache.tools.ant.Project.runTarget(Project.java:818)
> at org.apache.tools.ant.Project.executeTarget(Project.java:532)
> at org.apache.tools.ant.Project.executeTargets(Project.java:506)
> at org.apache.tools.ant.Main.runBuild(Main.java:420)
> at org.apache.tools.ant.Main.main(Main.java:149)
>
> -----------------
> build.xml snippet
>
>
> <target name="runtests" depends="compiletests">
> <junit printsummary="yes" fork="no" haltonfailure="no">
> <formatter type="xml" />
> <classpath>
> <pathelement location="${test.dir}" />
> <pathelement path="${java.class.path}" />
> <pathelement path="build/testcases" />
> <pathelement path="${build.dir}" />
> </classpath>
> <test name="com.digisolutions.AllTests" />
> </junit>
> </target>