test/com/sun/javadoc/testProfiles/TestProfiles.java

changeset 2036
8df12c315ea3
parent 1999
7993cfab8610
child 2084
6e186ca11ec0
equal deleted inserted replaced
2035:a2a5ad0853ed 2036:8df12c315ea3
21 * questions. 21 * questions.
22 */ 22 */
23 23
24 /* 24 /*
25 * @test 25 * @test
26 * @bug 8006124 8009684 8016921 8023700 26 * @bug 8006124 8009684 8016921 8023700 8024096
27 * @summary Test javadoc support for profiles. 27 * @summary Test javadoc support for profiles.
28 * @author Bhavesh Patel, Evgeniya Stepanova 28 * @author Bhavesh Patel, Evgeniya Stepanova
29 * @library ../lib/ 29 * @library ../lib/
30 * @build JavadocTester TestProfiles 30 * @build JavadocTester TestProfiles
31 * @run main TestProfiles 31 * @run main TestProfiles
185 "<div class=\"header\">" + NL + "<h1 title=\"Package\" " 185 "<div class=\"header\">" + NL + "<h1 title=\"Package\" "
186 + "class=\"title\">Package&nbsp;pkg4</h1>" + NL + "</div>" 186 + "class=\"title\">Package&nbsp;pkg4</h1>" + NL + "</div>"
187 } 187 }
188 }; 188 };
189 private static final String[][] PACKAGES_NEGATED_TEST = { 189 private static final String[][] PACKAGES_NEGATED_TEST = {
190 {PACKAGE_BUG_ID + FS + "profile-overview-frame.html",
191 "<span><a href=\"overview-frame.html\" "
192 + "target=\"packageListFrame\">All&nbsp;Packages</a></span>"
193 },
194 {PACKAGE_BUG_ID + FS + "compact2-frame.html",
195 "<span><a href=\"overview-frame.html\" target=\"packageListFrame\">"
196 + "All&nbsp;Packages</a></span><span><a href=\"profile-overview-frame.html\" "
197 + "target=\"packageListFrame\">All&nbsp;Profiles</a></span>"
198 },
199 {PACKAGE_BUG_ID + FS + "pkg2" + FS + "compact2-package-frame.html",
200 "<a href=\"../compact2-summary.html\" target=\"classFrame\">"
201 + "compact2</a> - <a href=\"../pkg2/compact2-package-summary.html\" "
202 + "target=\"classFrame\">pkg2</a>"
203 },
204 {PACKAGE_BUG_ID + FS + "compact2-summary.html",
205 "<h1 title=\"Profile\" class=\"title\">Profile&nbsp;compact2</h1>"
206 },
207 {PACKAGE_BUG_ID + FS + "pkg5" + FS + "compact3-package-summary.html",
208 "<div class=\"subTitle\">compact3</div>"
209 },
210 {PACKAGE_BUG_ID + FS + "overview-frame.html", 190 {PACKAGE_BUG_ID + FS + "overview-frame.html",
211 "<span><a href=\"profile-overview-frame.html\" " 191 "<span><a href=\"profile-overview-frame.html\" "
212 + "target=\"packageListFrame\">All&nbsp;Profiles</a></span>" 192 + "target=\"packageListFrame\">All&nbsp;Profiles</a></span>"
213 }, 193 },
214 {PACKAGE_BUG_ID + FS + "pkg2" + FS + "Class1Pkg2.html", 194 {PACKAGE_BUG_ID + FS + "pkg2" + FS + "Class1Pkg2.html",
219 "compact1</a></li>" + NL + "<li><a href=\"compact2-summary.html\" " + 199 "compact1</a></li>" + NL + "<li><a href=\"compact2-summary.html\" " +
220 "target=\"classFrame\">compact2</a></li>" + NL + "<li><a href=\"" + 200 "target=\"classFrame\">compact2</a></li>" + NL + "<li><a href=\"" +
221 "compact3-summary.html\" target=\"classFrame\">compact3</a></li>" + NL + 201 "compact3-summary.html\" target=\"classFrame\">compact3</a></li>" + NL +
222 "</ul>" 202 "</ul>"
223 } 203 }
204 };
205 private static final String[] PACKAGES_NEGATED_FILE_TEST = {
206 PACKAGE_BUG_ID + FS + "profile-overview-frame.html",
207 PACKAGE_BUG_ID + FS + "compact2-frame.html",
208 PACKAGE_BUG_ID + FS + "pkg2" + FS + "compact2-package-frame.html",
209 PACKAGE_BUG_ID + FS + "compact2-summary.html",
210 PACKAGE_BUG_ID + FS + "pkg5" + FS + "compact3-package-summary.html"
224 }; 211 };
225 212
226 /** 213 /**
227 * The entry point of the test. 214 * The entry point of the test.
228 * 215 *
229 * @param args the array of command line arguments. 216 * @param args the array of command line arguments.
230 */ 217 */
231 public static void main(String[] args) { 218 public static void main(String[] args) {
232 TestProfiles tester = new TestProfiles(); 219 TestProfiles tester = new TestProfiles();
233 run(tester, ARGS1, PROFILES_TEST, PROFILES_NEGATED_TEST); 220 run(tester, ARGS1, PROFILES_TEST, PROFILES_NEGATED_TEST);
234 run(tester, ARGS2, PACKAGES_TEST, PACKAGES_NEGATED_TEST); 221 run(tester, ARGS2, PACKAGES_TEST, PACKAGES_NEGATED_TEST, NO_FILE_TEST, PACKAGES_NEGATED_FILE_TEST);
235 tester.printSummary(); 222 tester.printSummary();
236 } 223 }
237 224
238 /** 225 /**
239 * {@inheritDoc} 226 * {@inheritDoc}

mercurial