Re: Sample project using M2/EJB3/TestNG for using jboss embeddable container

2006-07-18 Thread Srepfler Srgjan

Marco Mistroni wrote:

hi darren,
there are problems with surefire-2.0.. i have mailed testng mailiing
lists..
if you run maven -x with  both surefire-2.2 and surefire-2.0 you'llnoticd
that with 2.2 there are plenty of jars being loaded in jboss, while
with 2.0there areonly 3.. that was as far as i debugged.. i m pretty
busy @ work at
the moment

hth
marco

On 6/27/06, Srepfler Srgjan <[EMAIL PROTECTED]> wrote:


Darren Hartford wrote:
> Tested with alpha 8, no problems.  Although, still need to use the
> SUREFIRE-2.2-SNAPSHOT plugin.
> -D
>
But the set of files are completely different, what is the list we can
cut/replace?
Srgjan

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





Hi marco,
Is there any progress on updating the example to use latest libs and 
containers?

Srgjan

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



Re: Sample project using M2/EJB3/TestNG for using jboss embeddable container

2006-06-27 Thread Marco Mistroni

hi darren,
there are problems with surefire-2.0.. i have mailed testng mailiing
lists..
if you run maven -x with  both surefire-2.2 and surefire-2.0 you'llnoticd
that with 2.2 there are plenty of jars being loaded in jboss, while
with 2.0there areonly 3.. that was as far as i debugged.. i m pretty
busy @ work at
the moment

hth
marco

On 6/27/06, Srepfler Srgjan <[EMAIL PROTECTED]> wrote:


Darren Hartford wrote:
> Tested with alpha 8, no problems.  Although, still need to use the
> SUREFIRE-2.2-SNAPSHOT plugin.
> -D
>
But the set of files are completely different, what is the list we can
cut/replace?
Srgjan

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




Re: Sample project using M2/EJB3/TestNG for using jboss embeddable container

2006-06-27 Thread Srepfler Srgjan

Darren Hartford wrote:

Tested with alpha 8, no problems.  Although, still need to use the
SUREFIRE-2.2-SNAPSHOT plugin.
-D
  
But the set of files are completely different, what is the list we can 
cut/replace?

Srgjan

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



RE: Sample project using M2/EJB3/TestNG for using jboss embeddable container

2006-06-27 Thread Darren Hartford
Tested with alpha 8, no problems.  Although, still need to use the
SUREFIRE-2.2-SNAPSHOT plugin.
-D

> -Original Message-
> From: Marco Mistroni [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 27, 2006 11:39 AM
> To: Maven Users List
> Subject: Re: Sample project using M2/EJB3/TestNG for using 
> jboss embeddable container
> 
> hello,
>  sorry... you have to get it from ejb3-embeddable  alpha6 ...
> go to www.jboss.org,  and look for EJB3 Download you should 
> look  for EJB3.0 RC6 PFD
> 
> now they are at version 8  i'll try asap to see if my 
> simple sample break i will if necessary update zip
> 
> hth
>  marco
> 

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



Re: Sample project using M2/EJB3/TestNG for using jboss embeddable container

2006-06-27 Thread Srepfler Srgjan

Marco Mistroni wrote:

hello,
sorry... you have to get it from ejb3-embeddable  alpha6 ...
go to www.jboss.org,  and look for EJB3 Download
you should look  for EJB3.0 RC6 PFD

now they are at version 8  i'll try asap to see if my simple sample
break
i will if necessary update zip

hth
marco


Thanks Marco
Grazie Marco
Srgjan

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



Re: Sample project using M2/EJB3/TestNG for using jboss embeddable container

2006-06-27 Thread Marco Mistroni

hello,
sorry... you have to get it from ejb3-embeddable  alpha6 ...
go to www.jboss.org,  and look for EJB3 Download
you should look  for EJB3.0 RC6 PFD

now they are at version 8  i'll try asap to see if my simple sample
break
i will if necessary update zip

hth
marco

On 6/27/06, Srepfler Srgjan <[EMAIL PROTECTED]> wrote:


Hi Marco,
I want to try your example but where can we find the files
ehcache-alpha6.jar, hibernate-all-alpha6.jar, jboss-ejb3-all-alpha6.jar
and thirdparty-all-alpha6.jar ? The latest jboss microcontainer release
is 1.0.2 and it doesn't contain these libs (actually, is this the
project we're supposed to download?)
Thanks and I hope this will become an archetype!

Srgjan

W Totti!!!

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




Re: Sample project using M2/EJB3/TestNG for using jboss embeddable container

2006-06-26 Thread Srepfler Srgjan

Hi Marco,
I want to try your example but where can we find the files 
ehcache-alpha6.jar, hibernate-all-alpha6.jar, jboss-ejb3-all-alpha6.jar 
and thirdparty-all-alpha6.jar ? The latest jboss microcontainer release 
is 1.0.2 and it doesn't contain these libs (actually, is this the 
project we're supposed to download?)

Thanks and I hope this will become an archetype!

Srgjan

W Totti!!!

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



Re: Sample project using M2/EJB3/TestNG for using jboss embeddable container

2006-06-26 Thread Marco Mistroni

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]




Re: Sample project using M2/EJB3/TestNG for using jboss embeddable container

2006-06-26 Thread Marco Mistroni

HI Serge,
no, but it s just a matter of making the EJB3ContainerTest class an
AbstractJUnit test..
i'll do it as soon as i have timne
changes are very trivial, ifyou want you can change it yourself :)

regards
marco


On 6/26/06, Serge Emmanuel Pagop <[EMAIL PROTECTED]> wrote:


Hi marco,
I want to know if  you already run a simple junit sample of jboss
embeddable
ejb3 testcase unter maven 2.0?

On 6/26/06, Marco Mistroni <[EMAIL PROTECTED]> wrote:
>
> 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]
> >
> >
>
>


--
--
Serge Emmanuel Pagop
Java EE Consultant and Trainer
E-Mail: [EMAIL PROTECTED]
Skype-Name: sisepago
Cell : +49-172-8552687




RE: Sample project using M2/EJB3/TestNG for using jboss embeddable container

2006-06-26 Thread Marc Tremblay
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]



Re: Sample project using M2/EJB3/TestNG for using jboss embeddable container

2006-06-26 Thread Serge Emmanuel Pagop

Hi marco,
I want to know if  you already run a simple junit sample of jboss embeddable
ejb3 testcase unter maven 2.0?

On 6/26/06, Marco Mistroni <[EMAIL PROTECTED]> wrote:


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]
>
>





--
--
Serge Emmanuel Pagop
Java EE Consultant and Trainer
E-Mail: [EMAIL PROTECTED]
Skype-Name: sisepago
Cell : +49-172-8552687


Re: Sample project using M2/EJB3/TestNG for using jboss embeddable container

2006-06-26 Thread Marco Mistroni

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]




RE: Sample project using M2/EJB3/TestNG for using jboss embeddable container

2006-06-26 Thread Darren Hartford
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]



Sample project using M2/EJB3/TestNG for using jboss embeddable container

2006-06-25 Thread Marco Mistroni

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