Problem Regarding junit test classes load , taking wrong classpath

2008-05-29 Thread Saurabh Agarwal
Hi ,

I have some junit testcase but i guess maven is considering the wrong class
path for file and is trying to load
classes with name
*test.java.x.y.z
*However* *my classes are in package  *x.y.z
**hence I am getting
java.lang.ClassNotFoundException*java.lang.ClassNotFoundException:
*
*

Can anybody please help .
-- 

Successful people make more mistakes because they do more 
Thanks
Saurabh Agarwal


Re: Problem Regarding junit test classes load , taking wrong classpath

2008-05-29 Thread Wayne Fay
Please provide more details about how your project is laid out etc.

By default, Maven expects that your Java files go in src/main/java and
the Java test files are in src/test/java. If you have configured
things differently in the pom.xml, then this may not be accurate.

What classes exactly are causing the CNFE? Are they classes from your
project, or from a dependency, or what?

Wayne

On 5/29/08, Saurabh Agarwal [EMAIL PROTECTED] wrote:
 Hi ,

 I have some junit testcase but i guess maven is considering the wrong class
 path for file and is trying to load
 classes with name
 *test.java.x.y.z
 *However* *my classes are in package  *x.y.z
 **hence I am getting
 java.lang.ClassNotFoundException*java.lang.ClassNotFoundException:
 *
 *

 Can anybody please help .
 --

 Successful people make more mistakes because they do more 
 Thanks
 Saurabh Agarwal


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]