1 25 26 package org.objectweb.jonas.jtests.clients.session; 27 28 import java.rmi.NoSuchObjectException ; 29 30 import org.objectweb.jonas.jtests.beans.local.Target; 31 import org.objectweb.jonas.jtests.beans.local.TargetSLHome; 32 import org.objectweb.jonas.jtests.util.JTestCase; 33 34 44 45 public abstract class B_ClientView extends JTestCase { 46 47 public B_ClientView(String name) { 48 super(name); 49 } 50 51 54 public abstract TargetSLHome getHome() throws Exception ; 55 56 57 58 59 64 public void testCreateAccessRemoteRemove() throws Exception { 65 Target tr = getHome().create(); 66 assertEquals(10, tr.getTen()); 67 tr.remove(); 68 try { 69 tr.method2("Bye"); 70 fail("NoSuchObjectException must be raised"); 71 } catch (NoSuchObjectException e) { 73 } 74 System.out.println("create, access to the bean via its remote interface and remove it"); 75 } 76 77 78 79 80 81 } 82 | Popular Tags |