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.SLSBBeanManagedUtxRefXML00; 32 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.resourceref.SLSBResourceRefXMLInjection00; 33 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.timersrvref.SLSBTimerSrvRefXML00; 34 import org.testng.annotations.BeforeClass; 35 import org.testng.annotations.BeforeMethod; 36 import org.testng.annotations.Test; 37 38 50 public class TestResourceRefXMLInjection { 51 52 55 private ItfResourceEnvRef00 bean; 56 57 60 private ItfCheck00 timerBean; 61 62 65 private ItfCheck00 utxBean; 66 67 71 @BeforeMethod 72 public void startUp() throws Exception { 73 bean = getBeanRemoteInstance(SLSBResourceRefXMLInjection00.class, ItfResourceEnvRef00.class); 74 } 75 76 80 @BeforeClass 81 public void startUp01() throws Exception { 82 timerBean = getBeanRemoteInstance(SLSBTimerSrvRefXML00.class, ItfCheck00.class); 83 utxBean = getBeanRemoteInstance(SLSBBeanManagedUtxRefXML00.class, ItfCheck00.class); 84 } 85 86 91 @Test 92 public void testJDBC00(){ 93 bean.checkJDBC(); 94 } 95 96 101 @Test 102 public void testJMS00(){ 103 bean.checkJMSConFactory(); 104 } 105 106 111 @Test 112 public void testJMS01(){ 113 bean.checkJMSQueueConFactory(); 114 } 115 116 121 @Test 122 public void testJMSQueue(){ 123 bean.checkJMSQueue(); 124 } 125 130 @Test 131 public void testJMSTopic(){ 132 bean.checkJMSTopic(); 133 } 134 135 140 @Test 141 public void testJMS02(){ 142 bean.checkJMSTopicConFactory(); 143 } 144 145 150 @Test 151 public void testMail00(){ 152 bean.checkMailSession(); 153 } 154 155 160 @Test 161 public void testUrl00(){ 162 bean.checkUrl(); 163 } 164 165 170 @Test 171 public void testEJBContext00(){ 172 bean.checkEJBContext(); 173 } 174 175 180 @Test 181 public void testTimerService00(){ 182 timerBean.check(); 183 } 184 185 190 @Test 191 public void testUserTransaction00(){ 192 utxBean.check(); 193 } 194 } 195 | Popular Tags |