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.SFSBContainerTransactionRequiredNew; 30 import org.objectweb.easybeans.tests.transaction.containermanaged.base.TestRequiredNew; 31 import org.testng.annotations.BeforeClass; 32 import org.testng.annotations.BeforeMethod; 33 import org.testng.annotations.Test; 34 35 47 public class TestRequiredNewRemoteSFSB extends TestRequiredNew { 48 49 53 @BeforeMethod 54 public void createBean() throws Exception { 55 super.createBean(SFSBContainerTransactionRequiredNew.class); 56 } 57 58 62 @BeforeClass 63 @Override 64 public void setup() throws Exception { 65 super.setup(); 66 } 67 68 72 @Test(groups = {"rollback"}, expectedExceptions = SQLException .class) 73 @Override 74 public void testSetRollbackOnly() throws Exception { 75 super.testSetRollbackOnly(); 76 } 77 78 82 @Test(groups = {"rollback"}) 83 @Override 84 public void testGetRollbackOnly() throws Exception { 85 super.testGetRollbackOnly(); 86 } 87 88 91 @BeforeMethod 92 @Override 93 public void deleteTable() { 94 super.deleteTable(); 95 } 96 97 101 @Test(groups = {"general attribute features"}, expectedExceptions = java.lang.IllegalStateException .class) 102 @Override 103 public void testGetUserTransactionWithEJBContext() throws Exception { 104 super.testGetUserTransactionWithEJBContext(); 105 } 106 107 111 @Test(groups = {"general attribute features"}, expectedExceptions = javax.naming.NameNotFoundException .class) 112 @Override 113 public void testGetUserTransactionWithLookup() throws Exception { 114 super.testGetUserTransactionWithLookup(); 115 } 116 117 121 @BeforeMethod 122 @Override 123 public void cleanTransaction() throws Exception { 124 super.cleanTransaction(); 125 } 126 127 } 128 | Popular Tags |