1 25 package org.objectweb.easybeans.tests.transaction.containermanaged.base; 26 27 import static org.testng.Assert.fail; 28 29 import java.sql.SQLException ; 30 31 import org.objectweb.easybeans.tests.common.ejbs.base.transaction.ItfContainerTransaction; 32 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.transaction.ItfTransactionMisc00; 33 34 54 public abstract class TestNotSupportedException extends TestContainerTransactionException{ 55 56 57 66 @Override 67 public void testCallOtherBeanReq() throws Exception { 68 super.testCallOtherBeanReq(); 69 } 70 71 80 @Override 81 public void testCallOtherBeanNotSup() throws Exception { 82 super.testCallOtherBeanNotSup(); 83 verifyCallOtherBean(); 84 } 85 86 91 private void verifyCallOtherBean() throws Exception { 92 try { 94 ExceptionHandleUtil.verifyTable(DATABASE_1, ItfContainerTransaction.TABLE); 95 } catch (SQLException e) { 96 fail("The container made a rollback in the transaction."); 97 } 98 try { 102 ExceptionHandleUtil.verifyTable(DATABASE_2, ItfTransactionMisc00.TABLE); 103 } catch (SQLException e) { 104 fail("The container made a rollback in the transaction."); 105 } 106 } 107 108 } 109 | Popular Tags |