1 25 package org.objectweb.easybeans.tests.transaction.containermanaged.stateless; 26 27 import java.sql.SQLException ; 28 29 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.transaction.SLSBContainerTransactionRequiredNew; 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 TestRequiredNewRemoteSLSB extends TestRequiredNew { 48 49 53 @BeforeMethod 54 public void createBean() throws Exception { 55 super.createBean(SLSBContainerTransactionRequiredNew.class); 56 } 57 58 62 @BeforeClass 63 @Override 64 public void setup() throws Exception { 65 super.setup(); 66 } 67 68 69 73 @Test(groups = {"rollback"}, expectedExceptions = SQLException .class) 74 @Override 75 public void testSetRollbackOnly() throws Exception { 76 super.testSetRollbackOnly(); 77 } 78 79 83 @Test(groups = {"rollback"}) 84 @Override 85 public void testGetRollbackOnly() throws Exception { 86 super.testGetRollbackOnly(); 87 } 88 89 92 @BeforeMethod 93 @Override 94 public void deleteTable() { 95 super.deleteTable(); 96 } 97 98 102 @Test(groups = {"general attribute features"}, expectedExceptions = java.lang.IllegalStateException .class) 103 @Override 104 public void testGetUserTransactionWithEJBContext() throws Exception { 105 super.testGetUserTransactionWithEJBContext(); 106 } 107 108 112 @Test(groups = {"general attribute features"}, expectedExceptions = javax.naming.NameNotFoundException .class) 113 @Override 114 public void testGetUserTransactionWithLookup() throws Exception { 115 super.testGetUserTransactionWithLookup(); 116 } 117 118 122 @BeforeMethod 123 @Override 124 public void cleanTransaction() throws Exception { 125 super.cleanTransaction(); 126 } 127 128 } 129 | Popular Tags |