1 25 package org.objectweb.easybeans.tests.timerservice.timeout.stateless.containermanaged; 26 27 import static org.objectweb.easybeans.tests.common.helper.EJBHelper.getBeanRemoteInstance; 28 29 import org.objectweb.easybeans.tests.common.ejbs.base.timer.ItfCreateTimer; 30 import org.objectweb.easybeans.tests.common.ejbs.entity.callbacklogger.OperationType; 31 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.timer.SLSBTimeoutCallbackAccess00; 32 import org.objectweb.easybeans.tests.timerservice.timeout.base.BaseTestTimeout; 33 import org.testng.annotations.AfterMethod; 34 import org.testng.annotations.BeforeClass; 35 import org.testng.annotations.BeforeMethod; 36 import org.testng.annotations.Test; 37 38 39 47 public class TestSLTimeoutAccess extends BaseTestTimeout{ 48 49 52 private ItfCreateTimer bean; 53 54 58 @Override 59 @BeforeClass 60 public void startUp() throws Exception { 61 super.startUp(); 62 } 63 64 68 @BeforeMethod 69 public void startBean() throws Exception { 70 bean = getBeanRemoteInstance(SLSBTimeoutCallbackAccess00.class, ItfCreateTimer.class); 71 } 72 73 77 @Override 78 public String getBeanName() { 79 return SLSBTimeoutCallbackAccess00.class.getName(); 80 } 81 82 86 @Override 87 public void requestStartTimer(final OperationType type) { 88 bean.startTimer(ItfCreateTimer.DURATION, type); 89 } 90 91 95 @Override 96 @Test 97 public void testAccessEJB00() throws Exception { 98 super.testAccessEJB00(); 99 } 100 101 106 @Override 107 @Test 108 public void testAccessResourceManager00() throws Exception { 109 super.testAccessResourceManager00(); 110 } 111 112 117 @Override 118 @Test 119 public void testAccessEntityManager00() throws Exception { 120 super.testAccessEntityManager00(); 121 } 122 123 128 @Override 129 @Test 130 public void testAccessEntityManagerFactory00() throws Exception { 131 super.testAccessEntityManagerFactory00(); 132 } 133 134 139 @Override 140 @Test 141 public void testAccessTimerService00() throws Exception { 142 super.testAccessTimerService00(); 143 } 144 145 150 @Override 151 @Test 152 public void testAccessUserTransaction00() throws Exception { 153 super.testAccessUserTransaction00(); 154 } 155 156 160 @Override 161 @AfterMethod 162 public void tearDownMethod() throws Exception { 163 super.tearDownMethod(); 164 } 165 166 } 167 | Popular Tags |