t; <[EMAIL PROTECTED]>
To:
Sent: Thursday, February 07, 2008 1:42 PM
Subject: Re: tests throw java.lang.NoClassDefFoundError for MVN, JUnit 4 but
not eclipse
>
> Thank you so much Nicole.
> When you say:
> Nicole Lacoste wrote:
> >
> > One thing is that all classes are requi
Thank you so much Nicole.
When you say:
Nicole Lacoste wrote:
>
> One thing is that all classes are required to have
> public constructors with either no-arg or String name. There are probably
> also requirements on public methods.
I think you're right. How did you figure this out? Also,
Hi Steven,
I had a sort of similar problem. Maven expects certain things from the unit
tests, that eclipse doesn't, the reason being that surefire uses reflection
to lance the unit tests. One thing is that all classes are required to have
public constructors with either no-arg or String name. The
Hi Steven,
My guess is there is a required jar in the eclipse classpath that is not
in the Maven dependency section. You will just need to determine which
jar this class is in. I'll bet that if you add this as a dependency
inside the pom itself, these tests will work. You might need to compare
Hello All,
I have a maven project with JUnit 4.0 unit tests. Most of our unit tests
are failing in Surefire with the message pasted below. However, all of the
unit tests work when launched from eclipse. Does anyone have any ideas on
how to troubleshoot?
Thanks in Advance,
Steven
java.lang.No