33 * @run main TestThrowsTag |
33 * @run main TestThrowsTag |
34 */ |
34 */ |
35 |
35 |
36 public class TestThrowsTag extends JavadocTester { |
36 public class TestThrowsTag extends JavadocTester { |
37 |
37 |
38 //Test information. |
|
39 private static final String BUG_ID = "4985072"; |
|
40 |
|
41 //Javadoc arguments. |
38 //Javadoc arguments. |
42 private static final String[] ARGS = new String[] { |
39 private static final String[] ARGS = new String[] { |
43 "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg" |
40 "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg" |
44 }; |
41 }; |
45 |
42 |
46 //Input for string search tests. |
43 //Input for string search tests. |
47 private static final String[][] TEST = { |
44 private static final String[][] TEST = { |
48 {BUG_ID + "/pkg/C.html", |
45 { "pkg/C.html", |
49 "<dd><code><a href=\"../pkg/T1.html\" title=\"class in pkg\">T1</a></code> - the first throws tag.</dd>\n" + |
46 "<dd><code><a href=\"../pkg/T1.html\" title=\"class in pkg\">T1</a></code> - the first throws tag.</dd>\n" + |
50 "<dd><code><a href=\"../pkg/T2.html\" title=\"class in pkg\">T2</a></code> - the second throws tag.</dd>\n" + |
47 "<dd><code><a href=\"../pkg/T2.html\" title=\"class in pkg\">T2</a></code> - the second throws tag.</dd>\n" + |
51 "<dd><code><a href=\"../pkg/T3.html\" title=\"class in pkg\">T3</a></code> - the third throws tag.</dd>\n" + |
48 "<dd><code><a href=\"../pkg/T3.html\" title=\"class in pkg\">T3</a></code> - the third throws tag.</dd>\n" + |
52 "<dd><code><a href=\"../pkg/T4.html\" title=\"class in pkg\">T4</a></code> - the fourth throws tag.</dd>\n" + |
49 "<dd><code><a href=\"../pkg/T4.html\" title=\"class in pkg\">T4</a></code> - the fourth throws tag.</dd>\n" + |
53 "<dd><code><a href=\"../pkg/T5.html\" title=\"class in pkg\">T5</a></code> - the first inherited throws tag.</dd>\n" + |
50 "<dd><code><a href=\"../pkg/T5.html\" title=\"class in pkg\">T5</a></code> - the first inherited throws tag.</dd>\n" + |
64 public static void main(String[] args) { |
61 public static void main(String[] args) { |
65 TestThrowsTag tester = new TestThrowsTag(); |
62 TestThrowsTag tester = new TestThrowsTag(); |
66 tester.run(ARGS, TEST, NO_TEST); |
63 tester.run(ARGS, TEST, NO_TEST); |
67 tester.printSummary(); |
64 tester.printSummary(); |
68 } |
65 } |
69 |
|
70 /** |
|
71 * {@inheritDoc} |
|
72 */ |
|
73 public String getBugId() { |
|
74 return BUG_ID; |
|
75 } |
|
76 |
|
77 /** |
|
78 * {@inheritDoc} |
|
79 */ |
|
80 public String getBugName() { |
|
81 return getClass().getName(); |
|
82 } |
|
83 } |
66 } |