public static void main(String[] args) { try { // Creating the Bug lists Tester<Integer> integers = new Tester(new Integer[] {2, 9, 22, 45}); Tester<Float> floats = new Tester(); floats.addBug(22.4f); floats.addBug(49.6f); // Printing the results System.out.println(integers.getLastBug()); System.out.println(floats.getLastBug()); } catch (EmptyListException e) { System.out.println(e.getMessage()); } }
public static void main(String[] args) { Tester.initMain(args); new SynchronizedArrayListTest(10, 0); new SynchronizedArrayListTest(9, 1); new SynchronizedArrayListTest(5, 5); new CopyOnWriteArrayListTest(10, 0); new CopyOnWriteArrayListTest(9, 1); new CopyOnWriteArrayListTest(5, 5); Tester.exec.shutdown(); }
public static void main(String[] args) { if (args.length > 0) Tester.defaultParams = TestParam.array(args); Tester.run(new TreeMap<Integer, Integer>(), tests); Tester.run(new HashMap<Integer, Integer>(), tests); Tester.run(new LinkedHashMap<Integer, Integer>(), tests); Tester.run(new IdentityHashMap<Integer, Integer>(), tests); Tester.run(new WeakHashMap<Integer, Integer>(), tests); Tester.run(new Hashtable<Integer, Integer>(), tests); }
/** Main method instantiates test and run test-cases. */ public static void main(String... args) throws Exception { Tester tester = new RepeatingTypeAnnotations(); tester.run(args); }
public static void main(String[] args) { Tester t = new Tester(); System.out.println("Score: " + t.runTest(args[0], args[1])); System.exit(0); }