You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Romain Manni-Bucau <rm...@gmail.com> on 2012/02/20 09:07:42 UTC

Fwd: openEJB fail on second test

it is the second time we have such an issue,

maybe we should scan junit/testng annotations (with a good catch if it is
not available at the classpath) to add automatically these tests to the
managed beans?

- Romain


---------- Forwarded message ----------
From: amber <am...@hotmail.fr>
Date: 2012/2/20
Subject: Re: openEJB fail on second test
To: users@openejb.apache.org


ok @javax.annotation.ManagedBean is the right solution, working for me too
^^

thx for help

--
View this message in context:
http://openejb.979440.n4.nabble.com/openEJB-fail-on-second-test-tp4401889p4403405.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: openEJB fail on second test

Posted by Romain Manni-Bucau <rm...@gmail.com>.
we don't change the behavior of the test if it is not asked but if it is
asked we could be ready.

- Romain


2012/2/20 Alan D. Cabrera <li...@toolazydogs.com>

> I think that it's a bad practice to automagically change the explicit
> behavior of tests.  If a test needs to explicitly state a fact about itself
> w/ an explicit annotation to get it to pass then that's what it should do.
>
>
> Regards,
> Alan
>
>
> On Feb 20, 2012, at 12:07 AM, Romain Manni-Bucau wrote:
>
> > it is the second time we have such an issue,
> >
> > maybe we should scan junit/testng annotations (with a good catch if it is
> > not available at the classpath) to add automatically these tests to the
> > managed beans?
> >
> > - Romain
> >
> >
> > ---------- Forwarded message ----------
> > From: amber <am...@hotmail.fr>
> > Date: 2012/2/20
> > Subject: Re: openEJB fail on second test
> > To: users@openejb.apache.org
> >
> >
> > ok @javax.annotation.ManagedBean is the right solution, working for me
> too
> > ^^
> >
> > thx for help
> >
> > --
> > View this message in context:
> >
> http://openejb.979440.n4.nabble.com/openEJB-fail-on-second-test-tp4401889p4403405.html
> > Sent from the OpenEJB User mailing list archive at Nabble.com.
>
>

Re: openEJB fail on second test

Posted by "Alan D. Cabrera" <li...@toolazydogs.com>.
I think that it's a bad practice to automagically change the explicit behavior of tests.  If a test needs to explicitly state a fact about itself w/ an explicit annotation to get it to pass then that's what it should do.


Regards,
Alan
 

On Feb 20, 2012, at 12:07 AM, Romain Manni-Bucau wrote:

> it is the second time we have such an issue,
> 
> maybe we should scan junit/testng annotations (with a good catch if it is
> not available at the classpath) to add automatically these tests to the
> managed beans?
> 
> - Romain
> 
> 
> ---------- Forwarded message ----------
> From: amber <am...@hotmail.fr>
> Date: 2012/2/20
> Subject: Re: openEJB fail on second test
> To: users@openejb.apache.org
> 
> 
> ok @javax.annotation.ManagedBean is the right solution, working for me too
> ^^
> 
> thx for help
> 
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/openEJB-fail-on-second-test-tp4401889p4403405.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.