1 25 package org.objectweb.easybeans.tests.transaction.containermanaged.stateful; 26 27 import java.sql.SQLException ; 28 29 import javax.ejb.EJBTransactionRolledbackException ; 30 31 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.transaction.SFSBContainerTransacSupportsApp01; 32 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.transaction.SFSBContainerTransacSupportsApp02; 33 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.transaction.SFSBContainerTransactionSupportsApp; 34 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.transaction.SFSBContainerTransactionSupportsRollback; 35 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.transaction.SFSBContainerTransactionSupportsRuntime; 36 import org.objectweb.easybeans.tests.transaction.containermanaged.base.TestExceptionHandleBase; 37 import org.testng.annotations.BeforeMethod; 38 import org.testng.annotations.Test; 39 40 57 public class TestExceptionHandleSupports extends TestExceptionHandleBase{ 58 59 64 @BeforeMethod 65 @Override 66 public void setup() throws Exception { 67 super.setup(); 68 } 69 70 75 @Override 76 public void createBeanApp() throws Exception { 77 super.createBeanApp(SFSBContainerTransactionSupportsApp.class); 78 } 79 80 85 @Override 86 public void createBeanApp01() throws Exception { 87 super.createBeanApp01(SFSBContainerTransacSupportsApp01.class); 88 } 89 90 95 @Override 96 public void createBeanApp02() throws Exception { 97 super.createBeanApp02(SFSBContainerTransacSupportsApp02.class); 98 } 99 100 105 @Override 106 public void createBeanRollback() throws Exception { 107 super.createBeanRollback(SFSBContainerTransactionSupportsRollback.class); 108 } 109 110 114 @Override 115 public void createBeanRuntime() throws Exception { 116 super.createBeanRuntime(SFSBContainerTransactionSupportsRuntime.class); 117 } 118 128 @Test(groups = {"application exception tests"}) 129 @Override 130 public void testNotUsingClientTransWithAppException() throws Exception { 131 super.testNotUsingClientTransWithAppException(); 132 } 133 134 144 @Test(groups = {"application rollback exception tests"}) 145 @Override 146 public void testNotUsingClientTransWithAppRollbackException() throws Exception { 147 super.testNotUsingClientTransWithAppRollbackException(); 148 } 149 150 159 @Test(groups = {"runtime exception tests"}) 160 @Override 161 public void testNotUsingClientTransWithRuntimeException() throws Exception { 162 super.testNotUsingClientTransWithRuntimeException(); 163 } 164 165 175 @Test 176 @Override 177 public void testNotUsingClientTransWithAppRuntimeRollbackException() throws Exception { 178 super.testNotUsingClientTransWithAppRuntimeRollbackException(); 179 } 180 181 191 @Test 192 @Override 193 public void testNotUsingClientTransWithAppRuntimeException() throws Exception { 194 super.testNotUsingClientTransWithAppRuntimeException(); 195 } 196 197 207 @Override 208 @Test(groups = {"application exception tests"}) 209 public void testUsingClientTransWithAppException() throws Exception { 210 super.testUsingClientTransWithAppException(); 211 } 212 213 224 @Test(groups = {"application rollback exception tests"}, expectedExceptions = SQLException .class) 225 public void tesUsingClientTransWithAppRollbackException() throws Exception { 226 super.testUsingClientTransWithAppRollbackException(false); 227 } 228 229 239 @Test(groups = {"runtime exception tests"}) 240 public void testUsingClientTransWithRuntimeException() throws Exception { 241 super.testUsingClientTransWithRuntimeException(EJBTransactionRolledbackException .class, false); 242 } 243 244 254 @Override 255 @Test 256 public void testUsingClientTransWithAppRuntimeException() throws Exception { 257 super.testUsingClientTransWithAppRuntimeException(); 258 } 259 260 270 @Test(expectedExceptions = SQLException .class) 271 public void testUsingClientTransWithAppRuntimeRollbackException() throws Exception { 272 super.testUsingClientTransWithAppRuntimeRollbackException(false); 273 } 274 275 } 276 | Popular Tags |