1 25 package org.objectweb.easybeans.tests.environment.reference.ejb; 26 27 import static org.objectweb.easybeans.tests.common.helper.EJBHelper.getBeanRemoteInstance; 28 29 import org.objectweb.easybeans.tests.common.ejbs.base.ItfEJBInjection; 30 import org.objectweb.easybeans.tests.common.ejbs.base.ItfEJBRef; 31 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.ejbref.SLSBEjbRefFieldInjection; 32 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.ejbref.SLSBEjbRefXML; 33 import org.testng.annotations.BeforeClass; 34 import org.testng.annotations.BeforeMethod; 35 import org.testng.annotations.Test; 36 37 47 public class TestEJBRefFieldInjection { 48 49 52 private ItfEJBRef bean; 53 54 57 private ItfEJBInjection beanInjectionByDescriptor; 58 59 63 @BeforeMethod 64 public void startUp() throws Exception { 65 bean = getBeanRemoteInstance(SLSBEjbRefFieldInjection.class, ItfEJBRef.class); 66 } 67 68 72 @BeforeClass 73 public void startUpInjection() throws Exception { 74 beanInjectionByDescriptor = getBeanRemoteInstance(SLSBEjbRefXML.class, ItfEJBInjection.class); 75 } 76 77 81 @Test 82 public void test00(){ 83 bean.check00(); 84 } 85 86 90 @Test 91 public void test01(){ 92 bean.check01(); 93 } 94 95 99 @Test 100 public void test02(){ 101 bean.check02(); 102 } 103 104 108 @Test 109 public void test03(){ 110 bean.check03(); 111 } 112 113 117 @Test 118 public void test04(){ 119 bean.check04(); 120 } 121 122 126 @Test 127 public void test05(){ 128 bean.check05(); 129 } 130 131 135 @Test 136 public void test06(){ 137 bean.check06(); 138 } 139 140 145 @Test 146 public void testInjectionByDeploymentDescriptor00() { 147 beanInjectionByDescriptor.checkInjection(); 148 } 149 } 150 | Popular Tags |