ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Goodnough <agoo...@yahoo.com>
Subject JUnitTask class cast exception error
Date Thu, 04 Jan 2001 19:50:20 GMT
I'm having a problem with the JUnit task.  This test works
fine at the command line but I receive this error when
running it as an Ant task.  The classpath used in both
cases is identical.  Any ideas?

Task
----
        <junit>
            <classpath>
                <pathelement path="${classpath}"/>
            </classpath>
            <formatter type="plain"/>
            <test
name="com.dcc.transview.test.VendorEntityTest"
                outfile="Tests"
            />
        </junit>



Error
-----

Testcase: testCreate took 2.724 sec
	Caused an ERROR
com.dcc.transview.vendor.entity.apiimpl.VendorBeanHomeImpl_ServiceStub
java.lang.ClassCastException:
com.dcc.transview.vendor.entity.apiimpl.VendorBeanHomeImpl_ServiceStub
	at
com.dcc.transview.test.VendorEntityTest.setUp(VendorEntityTest.java:26)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	at
junit.framework.TestResult$1.protect(TestResult.java:100)
	at
junit.framework.TestResult.runProtected(TestResult.java:117)
	at junit.framework.TestResult.run(TestResult.java:103)
	at junit.framework.TestCase.run(TestCase.java:120)
	at junit.framework.TestSuite.run(TestSuite.java:144)
	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)

=====

Andrew Goodnough
agoodno@yahoo.com

How do you know you've come far enough, until you've gone too far?

- Sheldon Kopp

 


__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

Mime
View raw message