1 25 26 package org.objectweb.jonas.stests.bank; 27 28 import junit.framework.Test; 29 import junit.framework.TestSuite; 30 31 public class F_bankDB extends A_bankWrite { 32 33 public F_bankDB(String name) { 34 super(name); 35 } 36 37 public String getManagerHomeName() { 38 return "bankManagerDBHome"; 39 } 40 41 public boolean getPrefetch() { 42 return false; 43 } 44 45 public static Test suite() { 46 return new TestSuite(F_bankDB.class); 47 } 48 49 public static void main(String args[]) { 50 String testtorun = null; 51 for (int argn = 0; argn < args.length; argn++) { 53 String sarg = args[argn]; 54 if (sarg.equals("-n")) { 55 testtorun = args[++argn]; 56 } 57 } 58 if (testtorun == null) { 59 junit.textui.TestRunner.run(suite()); 60 } else { 61 junit.textui.TestRunner.run(new F_bankDB(testtorun)); 62 } 63 } 64 } 65 | Popular Tags |