1 25 package org.objectweb.easybeans.tests.sessionbean.misc; 26 27 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.basic.ItfSessionBeanTester; 28 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.basic.SLSBSessionBeanTester; 29 import org.objectweb.easybeans.tests.common.helper.EJBHelper; 30 import org.testng.annotations.BeforeMethod; 31 import org.testng.annotations.Test; 32 33 42 public class TestRemoteAnnotation { 43 44 47 private ItfSessionBeanTester bean; 48 49 53 @BeforeMethod 54 public void setup() throws Exception { 55 bean = EJBHelper.getBeanRemoteInstance(SLSBSessionBeanTester.class, ItfSessionBeanTester.class); 57 } 58 59 66 @Test 67 public void testSFByInjection() { 68 bean.testSFSBByInjection(); 69 } 70 71 79 @Test 80 public void testSFByLookup() throws Exception { 81 bean.testSFSBByLookup(); 82 } 83 84 91 @Test 92 public void testSLByInjection() { 93 bean.testSLSBByInjection(); 94 } 95 96 104 @Test 105 public void testSLByLookup() throws Exception { 106 bean.testSLSBByLookup(); 107 } 108 } 109 | Popular Tags |