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