1 25 package org.objectweb.easybeans.tests.transaction.containermanaged.stateful; 26 27 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.transaction.SFSBContainerTransactionNever; 28 import org.objectweb.easybeans.tests.transaction.containermanaged.base.TestNever; 29 import org.testng.annotations.BeforeClass; 30 import org.testng.annotations.BeforeMethod; 31 import org.testng.annotations.Test; 32 33 45 public class TestNeverRemoteSFSB extends TestNever { 46 47 51 @BeforeMethod 52 public void createBean() throws Exception { 53 super.createBean(SFSBContainerTransactionNever.class); 54 } 55 56 60 @BeforeClass 61 @Override 62 public void setup() throws Exception { 63 super.setup(); 64 } 65 66 70 @Test(groups = {"never attribute features"}, expectedExceptions = javax.ejb.EJBException .class) 71 @Override 72 public void testUsingClientTrans() throws Exception { 73 super.testUsingClientTrans(); 74 } 75 76 80 @Test(groups = {"roll back"}, expectedExceptions = java.lang.IllegalStateException .class) 81 @Override 82 public void testSetRollbackOnly() throws Exception { 83 super.testSetRollbackOnly(); 84 } 85 86 90 @Test(groups = {"roll back"}, expectedExceptions = java.lang.IllegalStateException .class) 91 @Override 92 public void testGetRollbackOnly() throws Exception { 93 super.testGetRollbackOnly(); 94 } 95 96 99 @BeforeMethod 100 @Override 101 public void deleteTable() { 102 super.deleteTable(); 103 } 104 105 109 @Test(groups = {"general attribute features"}, expectedExceptions = java.lang.IllegalStateException .class) 110 @Override 111 public void testGetUserTransactionWithEJBContext() throws Exception { 112 super.testGetUserTransactionWithEJBContext(); 113 } 114 115 119 @Test(groups = {"general attribute features"}, expectedExceptions = javax.naming.NameNotFoundException .class) 120 @Override 121 public void testGetUserTransactionWithLookup() throws Exception { 122 super.testGetUserTransactionWithLookup(); 123 } 124 125 129 @BeforeMethod 130 @Override 131 public void cleanTransaction() throws Exception { 132 super.cleanTransaction(); 133 } 134 135 } 136 | Popular Tags |