1 25 package org.objectweb.easybeans.tests.transaction.containermanaged.mdb; 26 27 import static org.objectweb.easybeans.tests.common.ejbs.entity.callbacklogger.CallbackType.ON_MESSAGE; 28 29 import org.objectweb.easybeans.tests.common.ejbs.entity.callbacklogger.OperationType; 30 import org.objectweb.easybeans.tests.common.ejbs.mdb.containermanaged.transaction.MDBCMTRequired; 31 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.callbacklogger.CallbackChecker; 32 import org.objectweb.easybeans.tests.common.jms.JMSManager; 33 import org.testng.annotations.AfterClass; 34 import org.testng.annotations.AfterMethod; 35 import org.testng.annotations.BeforeClass; 36 import org.testng.annotations.Test; 37 38 39 51 public class TestRequiredRemoteMDB { 52 53 56 private JMSManager jmsQueue; 57 58 61 private CallbackChecker checker; 62 63 67 @BeforeClass 68 public void startUp00() throws Exception { 69 jmsQueue = new JMSManager(JMSManager.DEFAULT_QUEUE_CONNECTION_FACTORY, JMSManager.DEFAULT_QUEUE); 70 checker = new CallbackChecker(); 71 } 72 73 80 @Test 81 public void testRequired00() throws Exception { 82 jmsQueue.sendControlMessage(MDBCMTRequired.MESSAGE_TYPE, OperationType.UNDEFINED); 83 checker.check(MDBCMTRequired.class.getName(), ON_MESSAGE); 84 } 85 86 90 @AfterMethod 91 public void tearDown() throws Exception { 92 checker.deleteAll(); 93 } 94 95 99 @AfterClass 100 public void tearDownClass() throws Exception { 101 jmsQueue.close(); 102 } 103 } 104 | Popular Tags |