33 * @run main TestHrefInDocComment |
33 * @run main TestHrefInDocComment |
34 */ |
34 */ |
35 |
35 |
36 public class TestHrefInDocComment extends JavadocTester { |
36 public class TestHrefInDocComment extends JavadocTester { |
37 |
37 |
38 private static final String BUG_ID = "4638015"; |
|
39 private static final String[] ARGS = |
38 private static final String[] ARGS = |
40 new String[] { |
39 new String[] { |
41 "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"}; |
40 "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg"}; |
42 |
41 |
43 /** |
42 /** |
44 * The entry point of the test. |
43 * The entry point of the test. |
45 * @param args the array of command line arguments. |
44 * @param args the array of command line arguments. |
46 */ |
45 */ |
47 public static void main(String[] args) { |
46 public static void main(String[] args) { |
48 TestHrefInDocComment tester = new TestHrefInDocComment(); |
47 TestHrefInDocComment tester = new TestHrefInDocComment(); |
49 if (tester.run(ARGS, NO_TEST, NO_TEST) != 0) { |
48 if (tester.run(ARGS, NO_TEST, NO_TEST) != 0) { |
50 throw new Error("Javadoc failed to execute properly with given source."); |
49 throw new Error("Javadoc failed to execute properly with given source."); |
51 } |
50 } |
52 |
|
53 } |
|
54 |
|
55 /** |
|
56 * {@inheritDoc} |
|
57 */ |
|
58 public String getBugId() { |
|
59 return BUG_ID; |
|
60 } |
|
61 |
|
62 /** |
|
63 * {@inheritDoc} |
|
64 */ |
|
65 public String getBugName() { |
|
66 return getClass().getName(); |
|
67 } |
51 } |
68 } |
52 } |