You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Baz <ba...@goodconsultants.com> on 2004/01/19 21:59:05 UTC
incorrect package name in .java files Re: Please help with Ant/Junit
All,
Just resolved this issue and would like to share it with you all.
This is basically caused by incorrect package name declaration from
*Test.java files. The package names do not match up with the physcial
location of the *Test.java files.
Thank you.
Barry
----- Original Message -----
From: "Baz" <ba...@goodconsultants.com>
To: <an...@jakarta.apache.org>
Sent: Saturday, January 17, 2004 1:44 AM
Subject: Please help with Ant/Junit
> All,
>
> I am a newbie and would like to use junit in my build.xml. However, it
keep
> giving me the following errors... Please help!!! I know it might be doing
> with my CLASSPATH, but how can i define it? Please help asap. Its urgent
> :( I think I just do not know how to set the environment correctly.
>
> Please email me directly. Thanks in advance.
>
> B.
>
> test:
> [junit] Running XyzTest
> [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
> [junit] Testsuite: XyzTest
> [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>
> [junit] Null Test: Caused an ERROR
> [junit] XyzTest
> [junit] java.lang.ClassNotFoundException: XyzTest
> [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
> [junit] at java.security.AccessController.doPrivileged(Native
> Method)
> [junit] at
> java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
> [junit] at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
>
> [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>
>
> [junit] TEST XyzTest FAILED
>
> BUILD SUCCESSFUL
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org