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.SLSBSessionBeanTester02; 29 import org.objectweb.easybeans.tests.common.helper.EJBHelper; 30 import org.testng.annotations.BeforeMethod; 31 import org.testng.annotations.Test; 32 33 43 public class TestRemoteAnnotation02 { 44 45 48 private ItfSessionBeanTester01 bean; 49 50 54 @BeforeMethod 55 public void setup() throws Exception { 56 bean = EJBHelper.getBeanRemoteInstance(SLSBSessionBeanTester02.class, ItfSessionBeanTester01.class); 58 } 59 60 67 @Test 68 public void testSFLocal() { 69 bean.testSFLocal(); 70 } 71 72 79 @Test 80 public void testSLLocal() { 81 bean.testSLLocal(); 82 } 83 84 91 @Test 92 public void testSFRemote() { 93 bean.testSFRemote(); 94 } 95 96 103 @Test 104 public void testSLRemote() { 105 bean.testSLLocal(); 106 } 107 } 108 | Popular Tags |