ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pellier Marc <arc...@onssapl.fgov.be>
Subject Juinit and java.lang.NoSuchMethodError
Date Fri, 18 Apr 2003 12:00:56 GMT
When I add in the target test
    <classpath>
       <pathelement location="c:/bea/weblogic.jar"/>
    </classpath>

I had this stack trace

    [junit] java.lang.NoSuchMethodError
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFo
rmatter.startTest(XMLJUnitResultFormatter.java:186)
    [junit]     at junit.framework.TestResult.startTest(TestResult.java:151)
    [junit]     at junit.framework.TestResult.run(TestResult.java:103)
    [junit]     at junit.framework.TestCase.run(TestCase.java:118)
    [junit]     at junit.framework.TestSuite.runTest(TestSuite.java:208)
    [junit]     at junit.framework.TestSuite.run(TestSuite.java:203)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
run(JUnitTestRunner.java:231)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.
main(JUnitTestRunner.java:409)
    [junit] Exception in thread "main"





Anyone know what might cause this?





Example

<target name="test">
  <junit fork="yes" haltonfailure="yes">
    <test name="${test.class.name}" />
    <formatter type="plain" usefile="false" />
    <classpath refid="test.classpath" />
    <classpath>
       <pathelement location="c:/bea/weblogic.jar"/>
    </classpath>
  </junit>
</target>

Mime
View raw message