1 45 package org.openejb.test.stateless; 46 47 48 54 public class StatelessHomeIntfcTests extends BasicStatelessTestClient{ 55 56 public StatelessHomeIntfcTests(){ 57 super("HomeIntfc."); 58 } 59 60 protected void setUp() throws Exception { 61 super.setUp(); 62 Object obj = initialContext.lookup("client/tests/stateless/BasicStatelessHome"); 63 ejbHome = (BasicStatelessHome)javax.rmi.PortableRemoteObject.narrow( obj, BasicStatelessHome.class); 64 } 65 66 public void test01_create(){ 70 try{ 71 ejbObject = ejbHome.create(); 72 assertNotNull( "The EJBObject is null", ejbObject ); 73 } catch (Exception e){ 74 fail("Received Exception "+e.getClass()+ " : "+e.getMessage()); 75 } 76 } 77 81 } 82 | Popular Tags |