1 25 26 package org.objectweb.jonas.stests.manyops; 27 28 import javax.naming.NamingException ; 29 import javax.rmi.PortableRemoteObject ; 30 31 import junit.framework.Test; 32 import junit.framework.TestSuite; 33 34 37 public class F_manyops_std extends A_manyops { 38 39 public F_manyops_std(String name) { 40 super(name); 41 } 42 43 ProductHome getProductHome() throws NamingException { 44 return((ProductHome) PortableRemoteObject.narrow(ictx.lookup("manyopsProductHome_std"), ProductHome.class)); 45 } 46 47 public static Test suite() { 48 return new TestSuite(F_manyops_std.class); 49 } 50 51 public static void main (String args[]) { 52 String testtorun = null; 53 for (int argn = 0; argn < args.length; argn++) { 55 String s_arg = args[argn]; 56 Integer i_arg; 57 if (s_arg.equals("-n")) { 58 testtorun = args[++argn]; 59 } 60 } 61 if (testtorun == null) { 62 junit.textui.TestRunner.run(suite()); 63 } else { 64 junit.textui.TestRunner.run(new F_manyops_std(testtorun)); 65 } 66 } 67 } 68 | Popular Tags |