ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lauzon Daniel-Y18165 <>
Subject RE: junit crashes on first test of suite
Date Mon, 02 Feb 2004 16:54:35 GMT
I gave shot to:
		<pathelement location="src\classes\com\motorola\ptt\tests\unit"/>
		<pathelement location="src\classes\com\motorola\ptt\exception"/>
		<pathelement location="src\classes\com\motorola\ptt\snmp"/>
		<pathelement location="src\classes\com\motorola\ptt"/>
		<pathelement location="src\classes\com\motorola\ptt\tests"/>
		<pathelement location="lib"/>
		<pathelement location="etc"/>

and got the same:

	    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
	    [junit]     Caused an ERROR
	    [junit] com.motorola.ptt.tests.PostPTTRequest
	    [junit] java.lang.ClassNotFoundException: com.motorola.ptt.tests.PostPTTRequ
	    [junit]     at$
	    [junit]     at Method)
	    [junit]     at 

I double checked that the classes were actually there (including "PostPTTRequest" in "tests").

Must be some glitch I just cannot see.

Note: If I add the PostPTTRequest.class to the path, the error (in -d mode) that I get mentions
an incapacity to unzip it:
My understanding would be that given a path in the classpath, all jars in it will be expanded;
given a file, it is assumed to be a jar and an attempt is made to expand it. Am I making any

-----Original Message-----
From: Dominique Devienne []
Sent: 2 fevrier, 2004 11:13
To: 'Ant Users List'
Subject: RE: junit crashes on first test of suite

> From: Lauzon Daniel-Y18165 []
><junit printsummary="true">
>  <classpath>
>    <pathelement location="src\com\motorola\ptt\tests\unit"/>
>    ...
>    <pathelement location="lib"/>
>    <pathelement location="etc"/>
>  </classpath>
> <junit>

Your classpath looks incorrect. You probably shouldn't have
anything below src/ in it. One usually compiles classes from
src/ into build/classes/, and just use build/classes in the
<junit> classpath (with dependent JARs of course). --DD

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message