1 25 package org.objectweb.easybeans.tests.transaction.containermanaged.stateless; 26 27 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.transaction.SLSBContainerTransactionNever; 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 TestNeverRemoteSLSB extends TestNever { 46 47 51 @BeforeMethod 52 public void createBean() throws Exception { 53 super.createBean(SLSBContainerTransactionNever.class); 54 } 55 56 60 @BeforeClass 61 @Override 62 public void setup() throws Exception { 63 super.setup(); 64 } 65 66 67 68 72 @Test(groups = {"never attribute features"}, expectedExceptions = javax.ejb.EJBException .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 | Popular Tags |