ok Romain, working now ^^

Note : I tried the 2 methods :

1/
...
@ManagedBean
public class CourseTest {

    @Rule
    public  EJBContainerRule r = new EJBContainerRule();
    @Before
    public void init()
    {
        r.inject(this);
    }
...

=> The first @test is always very slow, the others are ok 

 
2/
...
@ManagedBean
public class CourseTest2 {
    @ClassRule
    public static final EJBContainerRule r = new EJBContainerRule();

    @Test
    public void test() {
        r.inject(this);
...

==> is quick on all tests, but the deawback is to put  r.inject(this) on
each test



--
View this message in context: 
http://tomee-openejb.979440.n4.nabble.com/openEJB-perfs-tp4674462p4674553.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to