public static void main(final String args[]) { for (int i = 0; i < args.length; i++) { if (args[i].equals("-time")) { i++; duration = MiscUtils.atol(args[i], duration); } else if (args[i].equals("-noanim")) { useAnimator = false; } else if (args[i].equals("-noresize")) { doResizeTest = false; } } System.err.println("useAnimator " + useAnimator); org.junit.runner.JUnitCore.main(TestGearsNewtAWTWrapper.class.getName()); }
public static void main(String args[]) throws IOException { for (int i = 0; i < args.length; i++) { if (args[i].equals("-time")) { durationPerTest = atoi(args[++i]); } else if (args[i].equals("-wait")) { waitAdd2nd = atoi(args[++i]); } } String tstname = TestParenting03bAWT.class.getName(); /* org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(new String[] { tstname, "filtertrace=true", "haltOnError=false", "haltOnFailure=false", "showoutput=true", "outputtoformatters=true", "logfailedtests=true", "logtestlistenerevents=true", "formatter=org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter", "formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,TEST-"+tstname+".xml" } ); */ org.junit.runner.JUnitCore.main(tstname); }