1 25 package org.objectweb.easybeans.tests.transaction.containermanaged.stateful; 26 27 import javax.ejb.EJBException ; 28 29 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.transaction.SFSBContainerTransacNotSupportedApp01; 30 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.transaction.SFSBContainerTransacNotSupportedApp02; 31 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.transaction.SFSBContainerTransacNotSupportedRollback; 32 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.transaction.SFSBContainerTransacNotSupportedRuntime; 33 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.transaction.SFSBContainerTransactionNotSupportedApp; 34 import org.objectweb.easybeans.tests.transaction.containermanaged.base.TestExceptionHandleBase; 35 import org.testng.annotations.BeforeMethod; 36 import org.testng.annotations.Test; 37 38 55 public class TestExceptionHandleNotSupported extends TestExceptionHandleBase{ 56 57 62 @BeforeMethod 63 @Override 64 public void setup() throws Exception { 65 super.setup(); 66 } 67 68 73 @Override 74 public void createBeanApp() throws Exception { 75 super.createBeanApp(SFSBContainerTransactionNotSupportedApp.class); 76 } 77 78 83 @Override 84 public void createBeanApp01() throws Exception { 85 super.createBeanApp01(SFSBContainerTransacNotSupportedApp01.class); 86 } 87 88 93 @Override 94 public void createBeanApp02() throws Exception { 95 super.createBeanApp02(SFSBContainerTransacNotSupportedApp02.class); 96 } 97 98 103 @Override 104 public void createBeanRollback() throws Exception { 105 super.createBeanRollback(SFSBContainerTransacNotSupportedRollback.class); 106 } 107 108 112 @Override 113 public void createBeanRuntime() throws Exception { 114 super.createBeanRuntime(SFSBContainerTransacNotSupportedRuntime.class); 115 } 116 117 127 @Test(groups = {"application exception tests"}) 128 @Override 129 public void testNotUsingClientTransWithAppException() throws Exception { 130 super.testNotUsingClientTransWithAppException(); 131 } 132 133 143 @Test(groups = {"application rollback exception tests"}) 144 @Override 145 public void testNotUsingClientTransWithAppRollbackException() throws Exception { 146 super.testNotUsingClientTransWithAppRollbackException(); 147 } 148 149 158 @Test(groups = {"runtime exception tests"}) 159 @Override 160 public void testNotUsingClientTransWithRuntimeException() throws Exception { 161 super.testNotUsingClientTransWithRuntimeException(); 162 } 163 164 174 @Test 175 @Override 176 public void testNotUsingClientTransWithAppRuntimeRollbackException() throws Exception { 177 super.testNotUsingClientTransWithAppRuntimeRollbackException(); 178 } 179 180 190 @Test 191 @Override 192 public void testNotUsingClientTransWithAppRuntimeException() throws Exception { 193 super.testNotUsingClientTransWithAppRuntimeException(); 194 } 195 196 206 @Override 207 @Test(groups = {"application exception tests"}) 208 public void testUsingClientTransWithAppException() throws Exception { 209 super.testUsingClientTransWithAppException(); 210 } 211 212 222 @Test(groups = {"application rollback exception tests"}) 223 public void testUsingClientTransWithAppRollbackException() throws Exception { 224 super.testUsingClientTransWithAppRollbackException(true); 225 } 226 227 236 @Test(groups = {"runtime exception tests"}) 237 public void testUsingClientTransWithRuntimeException() throws Exception { 238 super.testUsingClientTransWithRuntimeException(EJBException .class, true); 239 } 240 241 251 @Test 252 public void testUsingClientTransWithAppRuntimeRollbackException() throws Exception { 253 super.testUsingClientTransWithAppRuntimeRollbackException(true); 254 } 255 256 266 @Override 267 @Test 268 public void testUsingClientTransWithAppRuntimeException() throws Exception { 269 super.testUsingClientTransWithAppRuntimeException(); 270 } 271 272 } 273 | Popular Tags |