1 25 package org.objectweb.easybeans.tests.entity; 26 27 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.entitymanager.ItfTransactionContextTester; 28 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.entitymanager.SLSBTransactionContextTester; 29 import org.objectweb.easybeans.tests.common.helper.EJBHelper; 30 import org.testng.annotations.BeforeMethod; 31 import org.testng.annotations.Test; 32 33 42 public class TestEntityManager02 { 43 44 47 private ItfTransactionContextTester tester; 48 49 53 @BeforeMethod 54 public void setup() throws Exception { 55 tester = EJBHelper.getBeanRemoteInstance(SLSBTransactionContextTester.class, ItfTransactionContextTester.class); 56 57 } 58 59 66 @Test 67 public void testRequired() { 68 tester.createBeanRequired(); 69 } 70 71 79 @Test 80 public void testRequiresNew() { 81 tester.createBeanRequiresNewWithClientTransaction(); 82 } 83 84 92 @Test 93 public void testNotSupported() { 94 tester.createBeanRequiresNewWithoutClientTransaction(); 95 } 96 97 } 98 | Popular Tags |