51 {NOTICE_OUTPUT, "-Xmaxwarns "}, |
51 {NOTICE_OUTPUT, "-Xmaxwarns "}, |
52 {STANDARD_OUTPUT, "-Xdocrootparent "}, |
52 {STANDARD_OUTPUT, "-Xdocrootparent "}, |
53 {STANDARD_OUTPUT, "-Xdoclint "}, |
53 {STANDARD_OUTPUT, "-Xdoclint "}, |
54 {STANDARD_OUTPUT, "-Xdoclint:"}, |
54 {STANDARD_OUTPUT, "-Xdoclint:"}, |
55 }; |
55 }; |
56 private static final String[][] NEGATED_TEST = NO_TEST; |
|
57 |
56 |
58 //The help option should not crash the doclet. |
57 //The help option should not crash the doclet. |
59 private static final int EXPECTED_EXIT_CODE = 0; |
58 private static final int EXPECTED_EXIT_CODE = 0; |
60 |
59 |
61 /** |
60 /** |
62 * The entry point of the test. |
61 * The entry point of the test. |
63 * @param args the array of command line arguments. |
62 * @param args the array of command line arguments. |
64 */ |
63 */ |
65 public static void main(String[] args) { |
64 public static void main(String[] args) { |
66 TestXOption tester = new TestXOption(); |
65 TestXOption tester = new TestXOption(); |
67 int actualExitCode = tester.run(ARGS, TEST, NEGATED_TEST); |
66 int actualExitCode = tester.run(ARGS, TEST, NO_TEST); |
68 tester.checkExitCode(EXPECTED_EXIT_CODE, actualExitCode); |
67 tester.checkExitCode(EXPECTED_EXIT_CODE, actualExitCode); |
69 tester.printSummary(); |
68 tester.printSummary(); |
70 } |
69 } |
71 |
70 |
72 /** |
71 /** |