if first test is very slow maybe we scan more jars than before in your setup, configuring it would maybe help
Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <http://www.tomitribe.com> 2015-04-21 15:55 GMT+02:00 amber <[email protected]>: > 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. >
