1 25 package org.objectweb.easybeans.tests.sessionbean.misc; 26 27 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.basic.ItfSessionBeanTester01; 28 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.basic.SLSBSessionBeanTester01; 29 import org.objectweb.easybeans.tests.common.helper.EJBHelper; 30 import org.testng.annotations.BeforeMethod; 31 import org.testng.annotations.Test; 32 33 44 public class TestRemoteAnnotation01 { 45 46 49 private ItfSessionBeanTester01 bean; 50 51 55 @BeforeMethod 56 public void setup() throws Exception { 57 bean = EJBHelper.getBeanRemoteInstance(SLSBSessionBeanTester01.class, ItfSessionBeanTester01.class); 59 } 60 61 68 @Test 69 public void testSFLocal() { 70 bean.testSFLocal(); 71 } 72 73 80 @Test 81 public void testSLLocal() { 82 bean.testSLLocal(); 83 } 84 85 92 @Test 93 public void testSFRemote() { 94 bean.testSFRemote(); 95 } 96 97 104 @Test 105 public void testSLRemote() { 106 bean.testSLLocal(); 107 } 108 } 109 | Popular Tags |