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.SLSBContainerTransactionSupports; 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 TestSupportsRemoteSLSB extends TestSupports { 48 49 53 @BeforeMethod 54 public void createBean() throws Exception { 55 super.createBean(SLSBContainerTransactionSupports.class); 56 } 57 58 62 @BeforeClass 63 @Override 64 public void setup() throws Exception { 65 super.setup(); 66 } 67 68 69 73 @Test(groups = {"supports attribute features"}, expectedExceptions = SQLException .class) 74 @Override 75 public void testUsingClientTrans() throws Exception { 76 super.testUsingClientTrans(); 77 } 78 79 83 @Test(groups = {"roll back"}, expectedExceptions = java.lang.IllegalStateException .class) 84 @Override 85 public void testSetRollbackOnly() throws Exception { 86 super.testSetRollbackOnly(); 87 } 88 89 93 @Test(groups = {"roll back"}, expectedExceptions = java.lang.IllegalStateException .class) 94 @Override 95 public void testGetRollbackOnly() throws Exception { 96 super.testGetRollbackOnly(); 97 } 98 99 102 @BeforeMethod 103 @Override 104 public void deleteTable() { 105 super.deleteTable(); 106 } 107 108 112 @Test(groups = {"general attribute features"}, expectedExceptions = java.lang.IllegalStateException .class) 113 @Override 114 public void testGetUserTransactionWithEJBContext() throws Exception { 115 super.testGetUserTransactionWithEJBContext(); 116 } 117 118 122 @Test(groups = {"general attribute features"}, expectedExceptions = javax.naming.NameNotFoundException .class) 123 @Override 124 public void testGetUserTransactionWithLookup() throws Exception { 125 super.testGetUserTransactionWithLookup(); 126 } 127 128 132 @BeforeMethod 133 @Override 134 public void cleanTransaction() throws Exception { 135 super.cleanTransaction(); 136 } 137 } 138 | Popular Tags |