30 * @run main TestXOption |
30 * @run main TestXOption |
31 */ |
31 */ |
32 |
32 |
33 public class TestXOption extends JavadocTester { |
33 public class TestXOption extends JavadocTester { |
34 |
34 |
35 //Test information. |
|
36 private static final String BUG_ID = "8007687"; |
|
37 |
|
38 //Javadoc arguments. |
35 //Javadoc arguments. |
39 private static final String[] ARGS = new String[] { |
36 private static final String[] ARGS = new String[] { |
40 "-d", BUG_ID, "-sourcepath", SRC_DIR, "-X", |
37 "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "-X", |
41 SRC_DIR + "/TestXOption.java" |
38 SRC_DIR + "/TestXOption.java" |
42 }; |
39 }; |
43 |
40 |
44 private static final String[] ARGS2 = new String[] { |
41 private static final String[] ARGS2 = new String[] { |
45 "-d", BUG_ID, "-sourcepath", SRC_DIR, |
42 "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, |
46 SRC_DIR + "/TestXOption.java" |
43 SRC_DIR + "/TestXOption.java" |
47 }; |
44 }; |
48 |
45 |
49 private static final String[][] TEST = { |
46 private static final String[][] TEST = { |
50 {NOTICE_OUTPUT, "-Xmaxerrs "}, |
47 {NOTICE_OUTPUT, "-Xmaxerrs "}, |
65 TestXOption tester = new TestXOption(); |
62 TestXOption tester = new TestXOption(); |
66 int actualExitCode = tester.run(ARGS, TEST, NO_TEST); |
63 int actualExitCode = tester.run(ARGS, TEST, NO_TEST); |
67 tester.checkExitCode(EXPECTED_EXIT_CODE, actualExitCode); |
64 tester.checkExitCode(EXPECTED_EXIT_CODE, actualExitCode); |
68 tester.printSummary(); |
65 tester.printSummary(); |
69 } |
66 } |
70 |
|
71 /** |
|
72 * {@inheritDoc} |
|
73 */ |
|
74 public String getBugId() { |
|
75 return BUG_ID; |
|
76 } |
|
77 |
|
78 /** |
|
79 * {@inheritDoc} |
|
80 */ |
|
81 public String getBugName() { |
|
82 return getClass().getName(); |
|
83 } |
|
84 } |
67 } |