1 25 package org.objectweb.easybeans.tests.timerservice.timeout.mdb.containermanaged; 26 27 import org.objectweb.easybeans.tests.common.ejbs.entity.callbacklogger.OperationType; 28 import org.objectweb.easybeans.tests.common.ejbs.mdb.containermanaged.timer.MDBTimeoutCallbackAccess00; 29 import org.objectweb.easybeans.tests.common.jms.JMSManager; 30 import org.objectweb.easybeans.tests.timerservice.timeout.base.BaseTestTimeout; 31 import org.testng.annotations.AfterClass; 32 import org.testng.annotations.AfterMethod; 33 import org.testng.annotations.BeforeClass; 34 import org.testng.annotations.Test; 35 36 37 46 public class TestMDBTimeoutAccess extends BaseTestTimeout{ 47 48 51 private JMSManager jmsQueue; 52 53 57 @Override 58 public String getBeanName() { 59 return MDBTimeoutCallbackAccess00.class.getName(); 60 } 61 62 66 @Override 67 @BeforeClass 68 public void startUp() throws Exception { 69 super.startUp(); 70 jmsQueue = new JMSManager(JMSManager.DEFAULT_QUEUE_CONNECTION_FACTORY, JMSManager.DEFAULT_QUEUE); 71 } 72 73 77 @Override 78 @Test 79 public void testAccessEJB00() throws Exception { 80 super.testAccessEJB00(); 81 } 82 83 88 @Override 89 @Test 90 public void testAccessResourceManager00() throws Exception { 91 super.testAccessResourceManager00(); 92 } 93 94 99 @Override 100 @Test 101 public void testAccessEntityManager00() throws Exception { 102 super.testAccessEntityManager00(); 103 } 104 105 110 @Override 111 @Test 112 public void testAccessEntityManagerFactory00() throws Exception { 113 super.testAccessEntityManagerFactory00(); 114 } 115 116 121 @Override 122 @Test 123 public void testAccessTimerService00() throws Exception { 124 super.testAccessTimerService00(); 125 } 126 127 132 @Override 133 @Test 134 public void testAccessUserTransaction00() throws Exception { 135 super.testAccessUserTransaction00(); 136 } 137 138 142 @Override 143 @AfterMethod 144 public void tearDownMethod() throws Exception { 145 super.tearDownMethod(); 146 } 147 148 152 @AfterClass 153 public void tearDownClass() throws Exception { 154 jmsQueue.close(); 155 } 156 157 162 @Override 163 public void requestStartTimer(final OperationType type) throws Exception { 164 jmsQueue.sendControlMessage(getBeanName(), type); 165 } 166 167 } 168 | Popular Tags |