1 45 package org.openejb.test.stateful; 46 47 48 54 public class StatefulHomeIntfcTests extends BasicStatefulTestClient{ 55 56 public StatefulHomeIntfcTests(){ 57 super("HomeIntfc."); 58 } 59 60 protected void setUp() throws Exception { 61 super.setUp(); 62 Object obj = initialContext.lookup("client/tests/stateful/BasicStatefulHome"); 63 ejbHome = (BasicStatefulHome)javax.rmi.PortableRemoteObject.narrow( obj, BasicStatefulHome.class); 64 } 65 66 public void test01_create(){ 70 try{ 71 ejbObject = ejbHome.create("First Bean"); 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 |