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.SFSBContainerTransactionSupports; 30 import org.objectweb.easybeans.tests.transaction.containermanaged.base.TestSupports; 31 import org.testng.annotations.BeforeClass; 32 import org.testng.annotations.BeforeMethod; 33 import org.testng.annotations.Test; 34 35 47 public class TestSupportsRemoteSFSB extends TestSupports { 48 49 53 @BeforeMethod 54 public void createBean() throws Exception { 55 super.createBean(SFSBContainerTransactionSupports.class); 56 } 57 58 62 @BeforeClass 63 @Override 64 public void setup() throws Exception { 65 super.setup(); 66 } 67 68 72 @Test(groups = {"supports attribute features"}, expectedExceptions = SQLException .class) 73 @Override 74 public void testUsingClientTrans() throws Exception { 75 super.testUsingClientTrans(); 76 } 77 78 82 @Test(groups = {"roll back"}, expectedExceptions = java.lang.IllegalStateException .class) 83 @Override 84 public void testSetRollbackOnly() throws Exception { 85 super.testSetRollbackOnly(); 86 } 87 88 92 @Test(groups = {"roll back"}, expectedExceptions = java.lang.IllegalStateException .class) 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 131 @BeforeMethod 132 @Override 133 public void cleanTransaction() throws Exception { 134 super.cleanTransaction(); 135 } 136 137 } 138 | Popular Tags |