ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "B Manikandan" <manikandan.balasubraman...@wipro.com>
Subject Junit task not locating Test classes
Date Thu, 26 Sep 2002 18:13:17 GMT
Hi,
   The following is my build.xml. Iam always getting a ClassNotFoundError
for the test class. $src.test.dir points to the parent directory of
com.schwab.test.MoneyTest.

   <?xml version="1.0" encoding="UTF-8"?>
<project default="test" basedir=".">
    <target name="test">
	<junit printsummary="on">
	    <formatter type="xml"/>
	    <batchtest todir="${test.reports.dir}">
		<fileset dir="${src.test.dir}">
		    <include name="**/*.class"/>
		</fileset>
	    </batchtest>
	</junit>
    </target>
</project>

The output xml file has the following output
  <error message="com.schwab.test.MoneyTest"
type="java.lang.ClassNotFoundException">java.lang.ClassNotFoundException:
com.schwab.test.MoneyTest
	at java.net.URLClassLoader.findClass(URLClassLoader.java(Compiled
Code))
	at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))

	at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java(Compiled Code))
	at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))

	at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))

</error>


TIA,
Mani
 




begin 666 Wipro_Disclaimer.txt
M*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BI$:7-C;&%I;65R*BHJ*BHJ*BHJ
M*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BH@(" @
M#0H@#0H@26YF;W)M871I;VX@8V]N=&%I;F5D(&EN('1H:7,@12U-04E,(&)E
M:6YG('!R;W!R:65T87)Y('1O(%=I<')O($QI;6ET960@:7,@)W!R:79I;&5G
M960G( T*86YD("=C;VYF:61E;G1I86PG(&%N9"!I;G1E;F1E9"!F;W(@=7-E
M(&]N;'D@8GD@=&AE(&EN9&EV:61U86P@;W(@96YT:71Y('1O('=H:6-H(&ET
M(&ES( T*861D<F5S<V5D+B!9;W4@87)E(&YO=&EF:65D('1H870@86YY('5S
M92P@8V]P>6EN9R!O<B!D:7-S96UI;F%T:6]N(&]F('1H92!I;F9O<FUA=&EO
M;B -"F-O;G1A:6YE9"!I;B!T:&4@12U-04E,(&EN(&%N>2!M86YN97(@=VAA
M='-O979E<B!I<R!S=')I8W1L>2!P<F]H:6)I=&5D+@T*#0HJ*BHJ*BHJ*BHJ
M*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ
C*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ#0H 
end


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message