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.SLSBBeanManagedUtxRefMethodInjection00; 32 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.resourceref.SLSBResourceRefMethodInjection00; 33 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.timersrvref.SLSBTimerSrvRefMethodInjection00; 34 import org.testng.annotations.BeforeClass; 35 import org.testng.annotations.BeforeMethod; 36 import org.testng.annotations.Test; 37 38 39 51 public class TestResourceRefMethodInjection { 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(SLSBResourceRefMethodInjection00.class, ItfResourceEnvRef00.class); 75 } 76 77 81 @BeforeClass 82 public void startUp01() throws Exception { 83 timerBean = getBeanRemoteInstance(SLSBTimerSrvRefMethodInjection00.class, ItfCheck00.class); 84 utxBean = getBeanRemoteInstance(SLSBBeanManagedUtxRefMethodInjection00.class, ItfCheck00.class); 85 } 86 87 93 @Test 94 public void testJDBC00(){ 95 bean.checkJDBC(); 96 } 97 98 102 @Test 103 public void testJMS00(){ 104 bean.checkJMSConFactory(); 105 } 106 107 110 @Test 111 public void testJMS01(){ 112 bean.checkJMSQueueConFactory(); 113 } 114 115 118 @Test 119 public void testJMSQueue(){ 120 bean.checkJMSQueue(); 121 } 122 123 126 @Test 127 public void testJMSTopic(){ 128 bean.checkJMSTopic(); 129 } 130 131 134 @Test 135 public void testJMS02(){ 136 bean.checkJMSTopicConFactory(); 137 } 138 139 142 @Test 143 public void testMail00(){ 144 bean.checkMailSession(); 145 } 146 147 150 @Test 151 public void testUrl00(){ 152 bean.checkUrl(); 153 } 154 155 158 @Test 159 public void testEJBContext00(){ 160 bean.checkEJBContext(); 161 } 162 163 167 @Test 168 public void testTimerService00(){ 169 timerBean.check(); 170 } 171 172 176 @Test 177 public void testUserTransaction00(){ 178 utxBean.check(); 179 } 180 } 181 | Popular Tags |