I was using junit 3.5 and current release of ant (1.2).
I dropped back to 3.4 junit and have been making more progresss. 
Still not quite getting tests to run though. Just need to figure out
what I am doing wrong now.

    [junit] Running org.enhydra.zeus.result.StreamResultTest
    [junit] Exception in thread "main" java.lang.NoClassDefFoundError: 
org/enhydra/zeus/result/BaseResult
    [junit]     at java.lang.Class.forName1(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:134)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTestRunner.java:159)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTestRunner.java:144)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:324)
    [junit] TEST org.enhydra.zeus.result.StreamResultTest FAILED
    [junit] Running org.enhydra.zeus.source.StreamSourceTest
    [junit] Exception in thread "main" java.lang.NoClassDefFoundError: 
org/enhydra/zeus/source/BaseSource
    [junit]     at java.lang.Class.forName1(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:134)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTestRunner.java:159)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTestRunner.java:144)
    [junit]     at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:324)
    [junit] TEST org.enhydra.zeus.source.StreamSourceTest FAILED


from build.xml

Thanks, Spencer


danch <[EMAIL PROTECTED]> writes:

> What versions of JUnit and Ant are you trying to use?
> 
> Spencer A Marks wrote:
> 
> > 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(JUnitTestRunner.java:202)
> >         at 
>org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java: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>

Reply via email to