In an applicationComposer environment, how can I set up the EJB "plumbing"
once for several JUnit tests?

I would normally use a static @BeforeClass method to set things up and a
static @AfterClass method to tear things down, but I don't understand how
these would interact with the @Module annotation in ApplicationComposer.  I
have searched but cannot find any comprehensive documentation on
ApplicationComposer or @Module. 


Following the general pattern  here
<http://tomee.apache.org/examples-trunk/application-composer/>  , I have set
up some tests using application composer, as follows:



What this code does, though is set up a persistence context once for each
test, and then tear it down afterward.  The result is horribly slow testing.




--
View this message in context: 
http://openejb.979440.n4.nabble.com/ApplicationComposer-one-set-up-for-multiple-tests-tp4664421.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to