Hi Marc,
i m not sure on why using surefire 2.2. does not work.. from logs i have
seen by running maven -e it looks like not all the jars that are needed are
deployed...
in fact, starting up tests using 2.2-SNAPSHOT results in lot of jars being
deployed (as well as EJBs)... (all jars part of the 3 jar file shipped with
embeddable-alpha6)
if i start tests using 2.2, only 2 lib gets deployed and i never see logs of
my EJBs being deployed...
if i have time, i might try to revert back to alpha5 (wher eyou have all
jars needed by jboss shipped independently - there are at least 10) and then
i'll try to see if it works
one thing worth to try is to replace the EJB3ContainerTest classs in the
sample maven project with an abstract JUnit test, to see if the problem is
testng, the lib packaged in alpha6 or something else
hth
marco
On 6/26/06, Marc Tremblay <[EMAIL PROTECTED]> wrote:
I've been experiencing the same problem -- all TestNG tests fail under
Surefire 2.2. I hadn't tried the 2.2-SNAPSHOT.
In my case the tests are failing due the 'beforeTestMethod' method being
invoked. For example,
public class ExampleTest {
private ObjectUnderTest objectUnderTest;
@Configuration(beforeTestMethod = true)
public void setUp() {
objectUnderTest= new ObjectUnderTest();
}
@Configuration(afterTestMethod = true)
public void tearDown() {
objectUnderTest= null;
}
@Test(groups = { "integration" })
public void testObjectUnderTest() {
assert objectUnderTest != null;
}
}
This test will fail at
assert objectUnderTest != null;
Indicating that setUp() was not called.
mT
> -----Original Message-----
> From: Marco Mistroni [mailto:[EMAIL PROTECTED]
> Sent: June 26, 2006 9:50 AM
> To: Maven Users List
> Subject: Re: Sample project using M2/EJB3/TestNG for using
> jboss embeddable container
>
> Hi,
> just noticed one minor thing (i already post msg on testng
> mailing list) in that project, surefire version is 2.2-SNAPSHOT
>
> if you change it to 2.2, all the test will fail.. for some
> weird reason that i still have to figue out
>
> this just to let you know
>
> rgds
> marco
>
> On 6/26/06, Darren Hartford <[EMAIL PROTECTED]> wrote:
> >
> > Yay! Thanks Marco, Tim :-)
> >
> > > -----Original Message-----
> > > From: Marco Mistroni [mailto:[EMAIL PROTECTED]
> > > Sent: Sunday, June 25, 2006 2:02 PM
> > > To: Maven Users List
> > > Subject: Sample project using M2/EJB3/TestNG for using jboss
> > > embeddable container
> > >
> > > hi all,
> > > i have added to maven pages a sample project htat uses
> > > EJB3 and jboss embeddable container for unit testing..
> > > sample app is available here
> > >
> > > http://docs.codehaus.org/display/MAVENUSER/Examples
> > >
> > > thanx for Mr Tim Kettler for setting up the page
> > >
> > > have fun with it, and feel free to improve it (app is
> really lame :)
> > >
> > > regards
> > > marco
> > >
> > > PS feel free to mail me back @ [EMAIL PROTECTED] if
> you have any
> > > problems
> > >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]