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.SLSBBeanManagedUtxRefFieldInjection00; 32 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.resourceref.SLSBResourceRefFieldInjection00; 33 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.timersrvref.SLSBTimerSrvRefFieldInjection00; 34 import org.testng.annotations.BeforeClass; 35 import org.testng.annotations.BeforeMethod; 36 import org.testng.annotations.Test; 37 38 39 51 public class TestResourceRefFieldInjection { 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 startUp() throws Exception { 74 bean = getBeanRemoteInstance(SLSBResourceRefFieldInjection00.class, ItfResourceEnvRef00.class); 75 } 76 77 81 @BeforeClass 82 public void startUp01() throws Exception { 83 timerBean = getBeanRemoteInstance(SLSBTimerSrvRefFieldInjection00.class, ItfCheck00.class); 84 utxBean = getBeanRemoteInstance(SLSBBeanManagedUtxRefFieldInjection00.class, ItfCheck00.class); 85 } 86 87 95 @Test 96 public void testJDBC00(){ 97 bean.checkJDBC(); 98 } 99 100 105 @Test 106 public void testJMS00(){ 107 bean.checkJMSConFactory(); 108 } 109 110 113 @Test 114 public void testJMS01(){ 115 bean.checkJMSQueueConFactory(); 116 } 117 118 121 @Test 122 public void testJMS02(){ 123 bean.checkJMSTopicConFactory(); 124 } 125 126 129 @Test 130 public void testJMSQueue(){ 131 bean.checkJMSQueue(); 132 } 133 134 137 @Test 138 public void testJMTopic(){ 139 bean.checkJMSTopic(); 140 } 141 142 145 @Test 146 public void testMail00(){ 147 bean.checkMailSession(); 148 } 149 150 153 @Test 154 public void testUrl00(){ 155 bean.checkUrl(); 156 } 157 158 161 @Test 162 public void testEJBContext00(){ 163 bean.checkEJBContext(); 164 } 165 166 170 @Test 171 public void testTimerService00(){ 172 timerBean.check(); 173 } 174 175 179 @Test 180 public void testUserTransaction00(){ 181 utxBean.check(); 182 } 183 184 } 185 | Popular Tags |