1 25 package org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.local; 26 27 import static org.objectweb.easybeans.tests.common.helper.EJBHelper.getBeanLocalInstance; 28 import static org.testng.Assert.assertEquals; 29 30 import javax.ejb.Remote ; 31 import javax.ejb.Stateless ; 32 33 import org.objectweb.easybeans.tests.common.ejbs.base.ItfAccessEJB; 34 import org.objectweb.easybeans.tests.common.ejbs.base.ItfAccessJNDI; 35 import org.objectweb.easybeans.tests.common.interfaces.ItfTestLocalAnnotation00; 36 37 38 44 @Stateless 45 @Remote (ItfTestLocalAnnotation00.class) 46 public class SLSBTestLocalAnnotation00 implements ItfTestLocalAnnotation00{ 47 48 52 public void testRun00() throws Exception { 53 ItfAccessJNDI bean = getBeanLocalInstance(SLSBLocalAnnotationTest00.class, ItfAccessJNDI.class); 54 String strResult = (String ) bean.accessJNDI(null); 55 assertEquals(strResult, SLSBLocalAnnotationTest00.JNDI, "The bean method is not running correctly."); 56 } 57 58 62 public void testRun01() throws Exception { 63 ItfAccessEJB bean = getBeanLocalInstance(SLSBLocalAnnotationTest00.class, ItfAccessEJB.class); 64 String strResult = (String ) bean.accessEJB(null); 65 assertEquals(strResult, SLSBLocalAnnotationTest00.EJB, "The bean method is not running correctly."); 66 } 67 68 72 public void testRun02() throws Exception { 73 ItfAccessEJB bean = getBeanLocalInstance(SLSBLocalAnnotationTest01.class, ItfAccessEJB.class); 74 String strResult = (String ) bean.accessEJB(null); 75 assertEquals(strResult, SLSBLocalAnnotationTest01.EJB, "The bean method is not running correctly."); 76 } 77 78 } 79 | Popular Tags |