1 25 26 package org.objectweb.jonas.jtests.clients.session; 27 28 import javax.rmi.PortableRemoteObject ; 29 30 import junit.framework.Test; 31 import junit.framework.TestSuite; 32 33 import org.objectweb.jonas.jtests.beans.local.TargetSLHome; 34 35 38 public class G_ClientViewNoTxSL extends B_ClientView { 39 40 protected static String BEAN_HOME = "EJB/localSimpleSessionSLHome"; 41 protected static TargetSLHome home = null; 42 43 public G_ClientViewNoTxSL(String name) { 44 super(name); 45 } 46 47 public void testEmpty() throws Exception { 48 } 49 50 51 55 protected void setUp() { 56 super.setUp(); 57 useBeans("local", false); 58 } 59 60 public TargetSLHome getHome() throws Exception { 61 if (home == null) { 62 home = (TargetSLHome) PortableRemoteObject.narrow(ictx.lookup(BEAN_HOME), TargetSLHome.class) ; 63 } 64 assertTrue(home != null); 65 return home; 66 } 67 68 public static Test suite() { 69 return new TestSuite(G_ClientViewNoTxSL.class); 70 } 71 72 73 74 public static void main (String args[]) throws Exception { 75 String testtorun = null; 76 for (int argn = 0; argn < args.length; argn++) { 78 String s_arg = args[argn]; 79 Integer i_arg; 80 if (s_arg.equals("-n")) { 81 testtorun = args[++argn]; 82 } 83 } 84 if (testtorun == null) { 85 junit.textui.TestRunner.run(suite()); 86 } else { 87 88 junit.textui.TestRunner.run(new F_ClientViewNoTxSL(testtorun)); 89 } 90 } 91 92 } 93 | Popular Tags |