1 25 package org.objectweb.easybeans.tests.entity; 26 27 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.resourceleveltrans.ItfResourceLevelTransTester; 28 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.resourceleveltrans.SFSBResourceLevelTransTester; 29 import org.objectweb.easybeans.tests.common.helper.EJBHelper; 30 import org.testng.annotations.BeforeMethod; 31 import org.testng.annotations.Test; 32 33 43 public class TestResourceLevelTrans { 44 45 48 private ItfResourceLevelTransTester sfsbResourceLevelTransTester; 49 50 54 @BeforeMethod 55 public void setup() throws Exception { 56 sfsbResourceLevelTransTester = EJBHelper.getBeanRemoteInstance(SFSBResourceLevelTransTester.class, 57 ItfResourceLevelTransTester.class); 58 sfsbResourceLevelTransTester.startup(); 59 } 60 61 67 @Test 68 public void testResourceLevelRollback() { 69 sfsbResourceLevelTransTester.resourceLevelRollback(); 70 } 71 72 78 @Test 79 public void testResourceLevelCommit() { 80 sfsbResourceLevelTransTester.resourceLevelCommit(); 81 } 82 83 89 @Test 90 public void testResourceLevelSetRollbackOnly() { 91 sfsbResourceLevelTransTester.setRollbackOnly(); 92 } 93 } 94 | Popular Tags |