1 25 26 package org.objectweb.jonas.jtests.templates; 27 28 import javax.naming.NamingException ; 29 import javax.rmi.PortableRemoteObject ; 30 31 import junit.framework.Test; 32 import junit.framework.TestSuite; 33 34 import org.objectweb.jonas.jtests.beans.transacted.SimpleSHome; 35 import org.objectweb.jonas.jtests.util.JTestCase; 36 37 public class F_Suite_1 extends JTestCase { 38 39 protected static String BEAN_HOME = "transactedSimpleSLECHome"; 40 protected static SimpleSHome bhome = null; 41 42 public F_Suite_1(String name) { 43 super(name); 44 } 45 46 51 protected void setUp() { 52 super.setUp(); 53 if (bhome == null) { 54 useBeans("transacted", true); 55 try { 56 bhome = (SimpleSHome) PortableRemoteObject.narrow(ictx.lookup(BEAN_HOME), SimpleSHome.class); 57 } catch (NamingException e) { 58 fail("Cannot get SimpleSLHome:"+e); 59 } 60 } 61 } 62 63 66 public void testXXX() throws Exception { 67 } 68 69 72 public void testYYY() throws Exception { 73 fail(); 74 } 75 public static Test suite() { 76 return new TestSuite(F_Suite_1.class); 77 78 } 79 80 public static void main (String args[]) { 81 String testtorun = null; 82 for (int argn = 0; argn < args.length; argn++) { 84 String s_arg = args[argn]; 85 Integer i_arg; 86 if (s_arg.equals("-n")) { 87 testtorun = args[++argn]; 88 } 89 } 90 if (testtorun == null) { 91 junit.textui.TestRunner.run(suite()); 92 } else { 93 junit.textui.TestRunner.run(new F_Suite_1(testtorun)); 94 } 95 } 96 } 97 | Popular Tags |