54 "-group", "Package One", "pkg3", |
54 "-group", "Package One", "pkg3", |
55 "pkg1", "pkg2", "pkg3" |
55 "pkg1", "pkg2", "pkg3" |
56 }; |
56 }; |
57 |
57 |
58 //Input for string search tests. |
58 //Input for string search tests. |
59 private static final String[][] TEST1 = NO_TEST; |
|
60 private static final String[][] NEGATED_TEST1 = {{WARNING_OUTPUT, "-group"}}; |
59 private static final String[][] NEGATED_TEST1 = {{WARNING_OUTPUT, "-group"}}; |
61 |
60 |
62 private static final String[][] TEST2 = {{WARNING_OUTPUT, "-group"}}; |
61 private static final String[][] TEST2 = {{WARNING_OUTPUT, "-group"}}; |
63 private static final String[][] NEGATED_TEST2 = NO_TEST; |
|
64 |
62 |
65 /** |
63 /** |
66 * The entry point of the test. |
64 * The entry point of the test. |
67 * @param args the array of command line arguments. |
65 * @param args the array of command line arguments. |
68 */ |
66 */ |
69 public static void main(String[] args) { |
67 public static void main(String[] args) { |
70 //Make sure the warning is not printed when -group is used correctly. |
68 //Make sure the warning is not printed when -group is used correctly. |
71 TestGroupOption tester = new TestGroupOption(); |
69 TestGroupOption tester = new TestGroupOption(); |
72 tester.run(ARGS1, TEST1, NEGATED_TEST1); |
70 tester.run(ARGS1, NO_TEST, NEGATED_TEST1); |
73 tester.printSummary(); |
71 tester.printSummary(); |
74 |
72 |
75 //Make sure the warning is printed when -group is not used correctly. |
73 //Make sure the warning is printed when -group is not used correctly. |
76 tester = new TestGroupOption(); |
74 tester = new TestGroupOption(); |
77 tester.run(ARGS2, TEST2, NEGATED_TEST2); |
75 tester.run(ARGS2, TEST2, NO_TEST); |
78 tester.printSummary(); |
76 tester.printSummary(); |
79 } |
77 } |
80 |
78 |
81 /** |
79 /** |
82 * {@inheritDoc} |
80 * {@inheritDoc} |