1 25 package org.objectweb.easybeans.tests.entity; 26 27 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.persistencectx.ItfPersistenceContextTester; 28 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.persistencectx.SFSBPersistenceContextTester; 29 import org.objectweb.easybeans.tests.common.helper.EJBHelper; 30 import org.testng.annotations.BeforeMethod; 31 import org.testng.annotations.Test; 32 33 44 public class TestPersistenceContext { 45 46 49 private ItfPersistenceContextTester sfsbPersistenceContextTester; 50 51 55 @BeforeMethod 56 public void setup() throws Exception { 57 sfsbPersistenceContextTester = EJBHelper.getBeanRemoteInstance(SFSBPersistenceContextTester.class, 58 ItfPersistenceContextTester.class); 59 sfsbPersistenceContextTester.startup(); 60 } 61 62 68 @Test 69 public void testTransactionPersistenceContext() { 70 sfsbPersistenceContextTester.testTransactionPersistenceContext(); 71 } 72 73 79 @Test 80 public void testExtendedPersistenceContext() { 81 sfsbPersistenceContextTester.testExtendedPersistenceContext(); 82 } 83 84 } 85 | Popular Tags |