1 25 package org.objectweb.easybeans.tests.environment.reference.resource; 26 27 import static org.objectweb.easybeans.tests.common.helper.EJBHelper.getBeanRemoteInstance; 28 29 import org.objectweb.easybeans.tests.common.ejbs.base.ItfCheck00; 30 import org.objectweb.easybeans.tests.common.ejbs.base.ItfResourceEnvRef00; 31 import org.objectweb.easybeans.tests.common.ejbs.stateless.beanmanaged.usertxref.SLSBBeanManagedUtxRefDeclaration00; 32 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.resourceref.SLSBResourceRefDeclaration00; 33 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.timersrvref.SLSBTimerSrvRefDeclaration00; 34 import org.testng.annotations.BeforeClass; 35 import org.testng.annotations.BeforeMethod; 36 import org.testng.annotations.Test; 37 38 39 51 public class TestResourceRefDeclaration { 52 53 56 private ItfResourceEnvRef00 bean; 57 58 61 private ItfCheck00 timerBean; 62 63 66 private ItfCheck00 utxBean; 67 68 72 @BeforeMethod 73 public void startUp00() throws Exception { 74 bean = getBeanRemoteInstance(SLSBResourceRefDeclaration00.class, ItfResourceEnvRef00.class); 75 } 76 77 81 @BeforeClass 82 public void startUp01() throws Exception { 83 timerBean = getBeanRemoteInstance(SLSBTimerSrvRefDeclaration00.class, ItfCheck00.class); 84 utxBean = getBeanRemoteInstance(SLSBBeanManagedUtxRefDeclaration00.class, ItfCheck00.class); 85 } 86 87 93 @Test 94 public void testJDBC00(){ 95 bean.checkJDBC(); 96 } 97 98 104 @Test 105 public void testJMS00(){ 106 bean.checkJMSConFactory(); 107 } 108 109 115 @Test 116 public void testJMS01(){ 117 bean.checkJMSQueueConFactory(); 118 } 119 120 126 @Test 127 public void testJMS02(){ 128 bean.checkJMSTopicConFactory(); 129 } 130 131 137 @Test 138 public void testJMSQueue(){ 139 bean.checkJMSQueue(); 140 } 141 142 148 @Test 149 public void testJMTopic(){ 150 bean.checkJMSTopic(); 151 } 152 153 159 @Test 160 public void testMail00(){ 161 bean.checkMailSession(); 162 } 163 164 170 @Test 171 public void testUrl00(){ 172 bean.checkUrl(); 173 } 174 175 181 @Test 182 public void testEJBContext00(){ 183 bean.checkEJBContext(); 184 } 185 186 192 @Test 193 public void testTimerService00(){ 194 timerBean.check(); 195 } 196 197 203 @Test 204 public void testUserTransaction00(){ 205 utxBean.check(); 206 } 207 208 } 209 | Popular Tags |