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 TestNeverException extends TestContainerTransactionException{ 55 56 57 66 @Override 67 public void testCallOtherBeanNotSup() throws Exception { 68 super.testCallOtherBeanNotSup(); 69 verifyCallOtherBean(); 70 } 71 72 81 @Override 82 public void testCallOtherBeanReq() throws Exception { 83 super.testCallOtherBeanReq(); 84 verifyCallOtherBean(); 85 } 86 87 92 private void verifyCallOtherBean() throws Exception { 93 try { 95 ExceptionHandleUtil.verifyTable(DATABASE_1, ItfContainerTransaction.TABLE); 96 } catch (SQLException e) { 97 fail("The container made a rollback in the transaction."); 98 } 99 try { 103 ExceptionHandleUtil.verifyTable(DATABASE_2, ItfTransactionMisc00.TABLE); 104 } catch (SQLException e) { 105 fail("The container made a rollback in the transaction."); 106 } 107 } 108 } 109 | Popular Tags |