1 45 package org.openejb.test.stateful; 46 47 import javax.ejb.EJBHome ; 48 49 55 public class StatefulHomeHandleTests extends BasicStatefulTestClient{ 56 57 public StatefulHomeHandleTests(){ 58 super("HomeHandle."); 59 } 60 61 protected void setUp() throws Exception { 62 super.setUp(); 63 Object obj = initialContext.lookup("client/tests/stateful/BasicStatefulHome"); 64 ejbHome = (BasicStatefulHome)javax.rmi.PortableRemoteObject.narrow( obj, BasicStatefulHome.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 |