1 45 package org.openejb.test.stateless; 46 47 import javax.ejb.EJBHome ; 48 49 55 public class StatelessHomeHandleTests extends BasicStatelessTestClient{ 56 57 public StatelessHomeHandleTests(){ 58 super("HomeHandle."); 59 } 60 61 protected void setUp() throws Exception { 62 super.setUp(); 63 Object obj = initialContext.lookup("client/tests/stateless/BasicStatelessHome"); 64 ejbHome = (BasicStatelessHome)javax.rmi.PortableRemoteObject.narrow( obj, BasicStatelessHome.class); 65 ejbHomeHandle = ejbHome.getHomeHandle(); 66 } 67 68 public void test01_getEJBHome(){ 72 try{ 73 EJBHome home = ejbHomeHandle.getEJBHome(); 74 assertNotNull( "The EJBHome is null", home ); 75 } catch (Exception e){ 76 fail("Received Exception "+e.getClass()+ " : "+e.getMessage()); 77 } 78 } 79 83 } 84 | Popular Tags |