author | lana |
Mon, 11 Aug 2014 09:25:30 -0700 | |
changeset 25880 | e5967ea9bde2 |
parent 24399 | af1a0220d0fa |
child 30730 | d3ce7619db2c |
permissions | -rw-r--r-- |
19913
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
1 |
/* |
23971 | 2 |
* Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. |
19913
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
4 |
* |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
8 |
* |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
13 |
* accompanied this code). |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
14 |
* |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
18 |
* |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
21 |
* questions. |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
22 |
*/ |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
23 |
|
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
24 |
/* |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
25 |
* @test |
21478
fa4c7cda1b41
8026567: Use meaningful style names for strong and italic styles.
bpatel
parents:
19937
diff
changeset
|
26 |
* @bug 8006124 8009684 8015663 8015496 8026567 |
19913
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
27 |
* @summary Test javadoc options support for profiles. |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
28 |
* @author Evgeniya Stepanova |
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
29 |
* @library ../lib |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
30 |
* @build JavadocTester |
19913
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
31 |
* @run main TestProfilesConfiguration |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
32 |
*/ |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
33 |
public class TestProfilesConfiguration extends JavadocTester { |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
34 |
|
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
35 |
public static void main(String... args) throws Exception { |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
36 |
TestProfilesConfiguration tester = new TestProfilesConfiguration(); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
37 |
tester.runTests(); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
38 |
// tester.run(ARGS3, PROFILES_CONFIGURATION_TEST, PROFILES_CONFIGURATION_NEGATED_TEST); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
39 |
// tester.run(ARGS4, NODEPR_NOPKGS_TEST, NODEPR_NOPKGS_NEGATED_TEST); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
40 |
// tester.printSummary(); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
41 |
} |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
42 |
|
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
43 |
@Test |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
44 |
void testProfiles() { |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
45 |
javadoc("-d", "out-profiles", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
46 |
"-sourcepath", testSrc, |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
47 |
"-nocomment", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
48 |
"-keywords", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
49 |
"-Xprofilespath", testSrc("profile-rtjar-includes.txt"), |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
50 |
"-doctitle", "Simple doctitle", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
51 |
"-use", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
52 |
"-packagesheader", "Simple packages header", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
53 |
"pkg3", "pkg1", "pkg2", "pkg4", "pkg5", "pkgDeprecated"); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
54 |
checkExit(Exit.OK); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
55 |
|
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
56 |
checkOutput("compact1-summary.html", true, |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
57 |
//-use option test string fo profile view page |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
58 |
"<li>Use</li>", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
59 |
// -keywords option test string for profiles |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
60 |
"<meta name=\"keywords\" content=\"compact1 profile\">", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
61 |
// Deprecated information on a package |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
62 |
"<h3><a href=\"pkgDeprecated/compact1-package-summary.html\" target=\"" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
63 |
+ "classFrame\">pkgDeprecated</a></h3>\n" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
64 |
+ "<div class=\"deprecatedContent\">" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
65 |
+ "<span class=\"deprecatedLabel\">Deprecated.</span></div>" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
66 |
); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
67 |
|
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
68 |
//-nocomments option test string |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
69 |
checkOutput("compact1-summary.html", false, |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
70 |
"<div class=\"block\"><i>Class1Pkg2.</i></div>" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
71 |
); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
72 |
|
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
73 |
// -doctitle option test string |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
74 |
checkOutput("overview-summary.html", true, |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
75 |
"<div class=\"header\">\n" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
76 |
+ "<h1 class=\"title\">Simple doctitle</h1>" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
77 |
); |
19937
7dacecdfbad4
8015496: Information that package is deprecated is missing in profiles view
bpatel
parents:
19913
diff
changeset
|
78 |
|
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
79 |
// -packagesheader option test string fo profiles |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
80 |
checkOutput("profile-overview-frame.html", true, |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
81 |
"<h1 title=\"Simple packages header\" class=\"bar\">Simple packages header</h1>" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
82 |
); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
83 |
} |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
84 |
|
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
85 |
|
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
86 |
@Test |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
87 |
void testNoDeprNoPackages() { |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
88 |
javadoc("-d", "out-noDeprNoPackages", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
89 |
"-sourcepath", testSrc, |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
90 |
"-nocomment", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
91 |
"-nodeprecated", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
92 |
"-keywords", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
93 |
"-Xprofilespath", testSrc("profile-rtjar-includes-nopkgs.txt"), |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
94 |
"-doctitle", "Simple doctitle", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
95 |
"-use", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
96 |
"-packagesheader", "Simple packages header", |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
97 |
"pkg1", "pkg2", "pkg3", "pkg4", "pkg5", "pkgDeprecated"); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
98 |
checkExit(Exit.OK); |
19913
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
99 |
|
24399
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
100 |
checkOutput("overview-summary.html", true, |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
101 |
"<ul>\n" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
102 |
+ "<li><a href=\"compact2-summary.html\" target=\"classFrame\">" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
103 |
+ "compact2</a></li>\n" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
104 |
+ "<li><a href=\"compact3-summary.html\" target=\"" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
105 |
+ "classFrame\">compact3</a></li>\n" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
106 |
+ "</ul>" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
107 |
); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
108 |
|
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
109 |
checkOutput("profile-overview-frame.html", true, |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
110 |
"<ul title=\"Profiles\">\n" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
111 |
+ "<li><a href=\"compact2-frame.html\" target=\"packageListFrame\">" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
112 |
+ "compact2</a></li>\n" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
113 |
+ "<li><a href=\"compact3-frame.html\" target=\"" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
114 |
+ "packageListFrame\">compact3</a></li>\n" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
115 |
+ "</ul>" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
116 |
); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
117 |
|
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
118 |
checkOutput("overview-summary.html", false, |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
119 |
"compact1" |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
120 |
); |
af1a0220d0fa
8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents:
24072
diff
changeset
|
121 |
|
19913
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
122 |
} |
2adc7be8a60b
8015663: Need to supply tests to provide javadoc for profiles support code coverage
jjg
parents:
diff
changeset
|
123 |
} |