1 25 package org.objectweb.easybeans.tests.transaction.containermanaged.stateful; 26 27 import java.sql.SQLException ; 28 29 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.transaction.SFSBContainerTransactionRequired; 30 import org.objectweb.easybeans.tests.transaction.containermanaged.base.TestRequired; 31 import org.testng.annotations.BeforeClass; 32 import org.testng.annotations.BeforeMethod; 33 import org.testng.annotations.Test; 34 35 47 public class TestRequiredRemoteSFSB extends TestRequired { 48 49 53 @BeforeMethod 54 public void createBean() throws Exception { 55 super.createBean(SFSBContainerTransactionRequired.class); 56 } 57 58 62 @BeforeClass 63 @Override 64 public void setup() throws Exception { 65 super.setup(); 66 } 67 68 72 @Test(groups = {"requires attribute features"}, expectedExceptions = SQLException .class) 73 @Override 74 public void testUsingClientTrans() throws Exception { 75 super.testUsingClientTrans(); 76 } 77 78 82 @Test(groups = {"rollback"}, expectedExceptions = SQLException .class) 83 @Override 84 public void testSetRollbackOnly() throws Exception { 85 super.testSetRollbackOnly(); 86 } 87 88 92 @Test(groups = {"rollback"}) 93 @Override 94 public void testGetRollbackOnly() throws Exception { 95 super.testGetRollbackOnly(); 96 } 97 98 101 @BeforeMethod 102 @Override 103 public void deleteTable() { 104 super.deleteTable(); 105 } 106 107 111 @Test(groups = {"general attribute features"}, expectedExceptions = java.lang.IllegalStateException .class) 112 @Override 113 public void testGetUserTransactionWithEJBContext() throws Exception { 114 super.testGetUserTransactionWithEJBContext(); 115 } 116 117 121 @Test(groups = {"general attribute features"}, expectedExceptions = javax.naming.NameNotFoundException .class) 122 @Override 123 public void testGetUserTransactionWithLookup() throws Exception { 124 super.testGetUserTransactionWithLookup(); 125 } 126 127 128 132 @BeforeMethod 133 @Override 134 public void cleanTransaction() throws Exception { 135 super.cleanTransaction(); 136 } 137 138 } 139 | Popular Tags |