/** * Gets bean instances used in the tests. * * @throws Exception if there is a problem with the bean initialization. */ @BeforeMethod public void startUp() throws Exception { bean = getBeanRemoteInstance(SLSBPCtxLifeCMETest00.class, ItfTestPCtxLifeCM00.class); bean.startUp(); }
/** * This test begins a transaction and creates an entity. As it uses an extended persistence * context, the entity must be managed after its creation. After this step, the test rolls back * the transaction and the entity must become detached. * * @input With a client transaction, invocation of a bean method which creates an entity. * @output An detached entity. * @throws Exception if a problem occurs. */ @Test public void test02() throws Exception { bean.test02(); }
/** * Cleans the test results. * * @throws Exception if a problem occurs */ @AfterMethod public void tearDown() throws Exception { bean.tearDown(); }