46 }; |
46 }; |
47 |
47 |
48 //Input for string search tests. |
48 //Input for string search tests. |
49 private static final String[][] TEST = { |
49 private static final String[][] TEST = { |
50 {BUG_ID + FS + "pkg" + FS + "Interface.html", |
50 {BUG_ID + FS + "pkg" + FS + "Interface.html", |
51 "int <B>method</B>()"}, |
51 "int <STRONG>method</STRONG>()"}, |
52 {BUG_ID + FS + "pkg" + FS + "Interface.html", |
52 {BUG_ID + FS + "pkg" + FS + "Interface.html", |
53 "static final int <B>field</B>"}, |
53 "static final int <STRONG>field</STRONG>"}, |
54 |
54 |
55 |
55 |
56 // Make sure known implementing class list is correct and omits type parameters. |
56 // Make sure known implementing class list is correct and omits type parameters. |
57 {BUG_ID + FS + "pkg" + FS + "Interface.html", |
57 {BUG_ID + FS + "pkg" + FS + "Interface.html", |
58 "<DT><B>All Known Implementing Classes:</B> " + |
58 "<DT><STRONG>All Known Implementing Classes:</STRONG> " + |
59 "<DD><A HREF=\"../pkg/Child.html\" " + |
59 "<DD><A HREF=\"../pkg/Child.html\" " + |
60 "title=\"class in pkg\">Child</A>, " + |
60 "title=\"class in pkg\">Child</A>, " + |
61 "<A HREF=\"../pkg/Parent.html\" title=\"class in pkg\">" + |
61 "<A HREF=\"../pkg/Parent.html\" title=\"class in pkg\">" + |
62 "Parent</A></DD>"}, |
62 "Parent</A></DD>"}, |
63 |
63 |
64 // Make sure "All Implemented Interfaces": has substituted type parameters |
64 // Make sure "All Implemented Interfaces": has substituted type parameters |
65 {BUG_ID + FS + "pkg" + FS + "Child.html", |
65 {BUG_ID + FS + "pkg" + FS + "Child.html", |
66 "<B>All Implemented Interfaces:</B> <DD><A HREF=\"../pkg/Interface.html\" title=\"interface in pkg\">Interface</A><T>" |
66 "<STRONG>All Implemented Interfaces:</STRONG> <DD><A HREF=\"../pkg/Interface.html\" title=\"interface in pkg\">Interface</A><T>" |
67 }, |
67 }, |
68 //Make sure Class Tree has substituted type parameters. |
68 //Make sure Class Tree has substituted type parameters. |
69 {BUG_ID + FS + "pkg" + FS + "Child.html", |
69 {BUG_ID + FS + "pkg" + FS + "Child.html", |
70 "<PRE>" + NL + |
70 "<PRE>" + NL + |
71 "java.lang.Object" + NL + |
71 "java.lang.Object" + NL + |
72 " <IMG SRC=\"../resources/inherit.gif\" ALT=\"extended by \"><A HREF=\"../pkg/Parent.html\" title=\"class in pkg\">pkg.Parent</A><T>" + NL + |
72 " <IMG SRC=\"../resources/inherit.gif\" ALT=\"extended by \"><A HREF=\"../pkg/Parent.html\" title=\"class in pkg\">pkg.Parent</A><T>" + NL + |
73 " <IMG SRC=\"../resources/inherit.gif\" ALT=\"extended by \"><B>pkg.Child<T></B>" + NL + |
73 " <IMG SRC=\"../resources/inherit.gif\" ALT=\"extended by \"><STRONG>pkg.Child<T></STRONG>" + NL + |
74 "</PRE>" |
74 "</PRE>" |
75 }, |
75 }, |
76 //Make sure "Direct Know Subclasses" omits type parameters |
76 //Make sure "Direct Know Subclasses" omits type parameters |
77 {BUG_ID + FS + "pkg" + FS + "Parent.html", |
77 {BUG_ID + FS + "pkg" + FS + "Parent.html", |
78 "<B>Direct Known Subclasses:</B> <DD><A HREF=\"../pkg/Child.html\" title=\"class in pkg\">Child</A>" |
78 "<STRONG>Direct Known Subclasses:</STRONG> <DD><A HREF=\"../pkg/Child.html\" title=\"class in pkg\">Child</A>" |
79 }, |
79 }, |
80 //Make sure "Specified By" has substituted type parameters. |
80 //Make sure "Specified By" has substituted type parameters. |
81 {BUG_ID + FS + "pkg" + FS + "Child.html", |
81 {BUG_ID + FS + "pkg" + FS + "Child.html", |
82 "<B>Specified by:</B><DD><CODE><A HREF=\"../pkg/Interface.html#method()\">method</A></CODE> in interface <CODE><A HREF=\"../pkg/Interface.html\" title=\"interface in pkg\">Interface</A><<A HREF=\"../pkg/Child.html\" title=\"type parameter in Child\">T</A>></CODE>" |
82 "<STRONG>Specified by:</STRONG><DD><CODE><A HREF=\"../pkg/Interface.html#method()\">method</A></CODE> in interface <CODE><A HREF=\"../pkg/Interface.html\" title=\"interface in pkg\">Interface</A><<A HREF=\"../pkg/Child.html\" title=\"type parameter in Child\">T</A>></CODE>" |
83 }, |
83 }, |
84 //Make sure "Overrides" has substituted type parameters. |
84 //Make sure "Overrides" has substituted type parameters. |
85 {BUG_ID + FS + "pkg" + FS + "Child.html", |
85 {BUG_ID + FS + "pkg" + FS + "Child.html", |
86 "<B>Overrides:</B><DD><CODE><A HREF=\"../pkg/Parent.html#method()\">method</A></CODE> in class <CODE><A HREF=\"../pkg/Parent.html\" title=\"class in pkg\">Parent</A><<A HREF=\"../pkg/Child.html\" title=\"type parameter in Child\">T</A>></CODE>" |
86 "<STRONG>Overrides:</STRONG><DD><CODE><A HREF=\"../pkg/Parent.html#method()\">method</A></CODE> in class <CODE><A HREF=\"../pkg/Parent.html\" title=\"class in pkg\">Parent</A><<A HREF=\"../pkg/Child.html\" title=\"type parameter in Child\">T</A>></CODE>" |
87 }, |
87 }, |
88 }; |
88 }; |
89 private static final String[][] NEGATED_TEST = { |
89 private static final String[][] NEGATED_TEST = { |
90 {BUG_ID + FS + "pkg" + FS + "Interface.html", |
90 {BUG_ID + FS + "pkg" + FS + "Interface.html", |
91 "public int <B>method</B>()"}, |
91 "public int <STRONG>method</STRONG>()"}, |
92 {BUG_ID + FS + "pkg" + FS + "Interface.html", |
92 {BUG_ID + FS + "pkg" + FS + "Interface.html", |
93 "public static final int <B>field</B>"}, |
93 "public static final int <STRONG>field</STRONG>"}, |
94 }; |
94 }; |
95 |
95 |
96 /** |
96 /** |
97 * The entry point of the test. |
97 * The entry point of the test. |
98 * @param args the array of command line arguments. |
98 * @param args the array of command line arguments. |