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_A extends A_manyops { 38 39 public F_manyops_A(String name) { 40 super(name); 41 } 42 43 ProductHome getProductHome() throws NamingException { 44 return((ProductHome) PortableRemoteObject.narrow( 45 ictx.lookup("manyopsProductHome_A"), 46 ProductHome.class)); 47 } 48 49 public static Test suite() { 50 return new TestSuite(F_manyops_A.class); 51 } 52 53 public static void main (String args[]) { 54 String testtorun = null; 55 for (int argn = 0; argn < args.length; argn++) { 57 String s_arg = args[argn]; 58 Integer i_arg; 59 if (s_arg.equals("-n")) { 60 testtorun = args[++argn]; 61 } 62 } 63 if (testtorun == null) { 64 junit.textui.TestRunner.run(suite()); 65 } else { 66 junit.textui.TestRunner.run(new F_manyops_A(testtorun)); 67 } 68 } 69 } 70 | Popular Tags |