24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 8006124 8009684 8016921 8023700 8024096 8008164 8026567 8026770 |
26 * @bug 8006124 8009684 8016921 8023700 8024096 8008164 8026567 8026770 |
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 |
31 * @run main TestProfiles |
31 * @run main TestProfiles |
32 */ |
32 */ |
33 public class TestProfiles extends JavadocTester { |
33 public class TestProfiles extends JavadocTester { |
34 |
34 |
35 //Test information. |
35 public static void main(String... args) throws Exception { |
36 private static final String PROFILE_OUTPUT_DIR = OUTPUT_DIR + "-1"; |
36 TestProfiles tester = new TestProfiles(); |
37 private static final String PACKAGE_OUTPUT_DIR = OUTPUT_DIR + "-2"; |
37 tester.runTests(); |
38 //Javadoc arguments. |
38 } |
39 private static final String[] ARGS1 = new String[]{ |
39 |
40 "-d", PROFILE_OUTPUT_DIR, "-sourcepath", SRC_DIR, "-Xprofilespath", |
40 @Test |
41 SRC_DIR + "/profile-rtjar-includes.txt", "pkg1", "pkg2", |
41 void testProfiles() { |
42 "pkg3", "pkg4", "pkg5", "pkgDeprecated" |
42 javadoc("-d", "out-profiles", |
43 }; |
43 "-sourcepath", testSrc, |
44 private static final String[] ARGS2 = new String[]{ |
44 "-Xprofilespath", testSrc("profile-rtjar-includes.txt"), |
45 "-d", PACKAGE_OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg1", "pkg2", |
45 "pkg1", "pkg2", "pkg3", "pkg4", "pkg5", "pkgDeprecated"); |
46 "pkg3", "pkg4", "pkg5" |
46 checkExit(Exit.OK); |
47 }; |
47 |
48 //Input for string tests for profiles. |
|
49 private static final String[][] PROFILES_TEST = { |
|
50 // Tests for profile-overview-frame.html listing all profiles. |
48 // Tests for profile-overview-frame.html listing all profiles. |
51 { "profile-overview-frame.html", |
49 checkOutput("profile-overview-frame.html", true, |
52 "<span><a href=\"overview-frame.html\" " |
50 "<span><a href=\"overview-frame.html\" " |
53 + "target=\"packageListFrame\">All Packages</a></span>" |
51 + "target=\"packageListFrame\">All Packages</a></span>", |
54 }, |
52 "<li><a href=\"compact1-frame.html\" target=\"packageListFrame\">" |
55 { "profile-overview-frame.html", |
53 + "compact1</a></li>"); |
56 "<li><a href=\"compact1-frame.html\" target=\"packageListFrame\">" |
54 |
57 + "compact1</a></li>" |
|
58 }, |
|
59 // Tests for profileName-frame.html listing all packages in a profile. |
55 // Tests for profileName-frame.html listing all packages in a profile. |
60 { "compact2-frame.html", |
56 checkOutput("compact2-frame.html", true, |
61 "<span><a href=\"overview-frame.html\" target=\"packageListFrame\">" |
57 "<span><a href=\"overview-frame.html\" target=\"packageListFrame\">" |
62 + "All Packages</a></span><span><a href=\"profile-overview-frame.html\" " |
58 + "All Packages</a></span><span><a href=\"profile-overview-frame.html\" " |
63 + "target=\"packageListFrame\">All Profiles</a></span>" |
59 + "target=\"packageListFrame\">All Profiles</a></span>", |
64 }, |
60 "<li><a href=\"pkg4/compact2-package-frame.html\" " |
65 { "compact2-frame.html", |
61 + "target=\"packageFrame\">pkg4</a></li>"); |
66 "<li><a href=\"pkg4/compact2-package-frame.html\" " |
62 |
67 + "target=\"packageFrame\">pkg4</a></li>" |
|
68 }, |
|
69 // Test for profileName-package-frame.html listing all types in a |
63 // Test for profileName-package-frame.html listing all types in a |
70 // package of a profile. |
64 // package of a profile. |
71 { "pkg2/compact2-package-frame.html", |
65 checkOutput("pkg2/compact2-package-frame.html", true, |
72 "<a href=\"../compact2-summary.html\" target=\"classFrame\">" |
66 "<a href=\"../compact2-summary.html\" target=\"classFrame\">" |
73 + "compact2</a> - <a href=\"../pkg2/compact2-package-summary.html\" " |
67 + "compact2</a> - <a href=\"../pkg2/compact2-package-summary.html\" " |
74 + "target=\"classFrame\">pkg2</a>" |
68 + "target=\"classFrame\">pkg2</a>"); |
75 }, |
69 |
76 // Tests for profileName-summary.html listing the summary for a profile. |
70 // Tests for profileName-summary.html listing the summary for a profile. |
77 { "compact2-summary.html", |
71 checkOutput("compact2-summary.html", true, |
78 "<li><a href=\"compact1-summary.html\">Prev Profile</a></li>\n" |
72 "<li><a href=\"compact1-summary.html\">Prev Profile</a></li>\n" |
79 + "<li><a href=\"compact3-summary.html\">Next Profile</a></li>" |
73 + "<li><a href=\"compact3-summary.html\">Next Profile</a></li>", |
80 }, |
74 "<h1 title=\"Profile\" class=\"title\">Profile compact2</h1>", |
81 { "compact2-summary.html", |
75 "<h3><a href=\"pkg2/compact2-package-summary.html\" " |
82 "<h1 title=\"Profile\" class=\"title\">Profile compact2</h1>" |
76 + "target=\"classFrame\">pkg2</a></h3>", |
83 }, |
77 "<ul class=\"blockList\">\n" |
84 { "compact2-summary.html", |
78 + "<li class=\"blockList\">\n" |
85 "<h3><a href=\"pkg2/compact2-package-summary.html\" " |
79 + "<h3><a href=\"pkg2/compact2-package-summary.html\" target=\"classFrame\">" |
86 + "target=\"classFrame\">pkg2</a></h3>" |
80 + "pkg2</a></h3>\n" |
87 }, |
81 + "<table class=\"typeSummary\" border=\"0\" " |
88 { "compact2-summary.html", |
82 + "cellpadding=\"3\" cellspacing=\"0\" summary=\"Class Summary table, " |
89 "<ul class=\"blockList\">\n" + |
83 + "listing classes, and an explanation\">", |
90 "<li class=\"blockList\">\n" |
84 "<ul class=\"blockList\">\n" |
91 + "<h3><a href=\"pkg2/compact2-package-summary.html\" target=\"classFrame\">" |
85 + "<li class=\"blockList\">\n" |
92 + "pkg2</a></h3>\n" + |
86 + "<h3><a href=\"pkg4/compact2-package-summary.html\" target=\"classFrame\">" |
93 "<table class=\"typeSummary\" border=\"0\" " |
87 + "pkg4</a></h3>\n" |
94 + "cellpadding=\"3\" cellspacing=\"0\" summary=\"Class Summary table, " |
88 + "<table class=\"typeSummary\" border=\"0\" " |
95 + "listing classes, and an explanation\">" |
89 + "cellpadding=\"3\" cellspacing=\"0\" summary=\"Class Summary table, " |
96 }, |
90 + "listing classes, and an explanation\">"); |
97 { "compact2-summary.html", |
91 |
98 "<ul class=\"blockList\">\n" + |
92 |
99 "<li class=\"blockList\">\n" |
|
100 + "<h3><a href=\"pkg4/compact2-package-summary.html\" target=\"classFrame\">" |
|
101 + "pkg4</a></h3>\n" + |
|
102 "<table class=\"typeSummary\" border=\"0\" " |
|
103 + "cellpadding=\"3\" cellspacing=\"0\" summary=\"Class Summary table, " |
|
104 + "listing classes, and an explanation\">" |
|
105 }, |
|
106 // Tests for profileName-package-summary.html listing the summary for a |
93 // Tests for profileName-package-summary.html listing the summary for a |
107 // package in a profile. |
94 // package in a profile. |
108 { "pkg5/compact3-package-summary.html", |
95 checkOutput("pkg5/compact3-package-summary.html", true, |
109 "<li><a href=\"../pkg4/compact3-package-summary.html\">Prev Package" |
96 "<li><a href=\"../pkg4/compact3-package-summary.html\">Prev Package" |
110 + "</a></li>" |
97 + "</a></li>", |
111 }, |
98 "<div class=\"subTitle\">compact3</div>", |
112 { "pkg5/compact3-package-summary.html", |
99 "<ul class=\"blockList\">\n" |
113 "<div class=\"subTitle\">compact3</div>" |
100 + "<li class=\"blockList\">\n" |
114 }, |
101 + "<table class=\"typeSummary\" border=\"0\" cellpadding=\"3\" " |
115 { "pkg5/compact3-package-summary.html", |
102 + "cellspacing=\"0\" summary=\"Interface Summary table, listing " |
116 "<ul class=\"blockList\">\n" + |
103 + "interfaces, and an explanation\">"); |
117 "<li class=\"blockList\">\n" |
104 |
118 + "<table class=\"typeSummary\" border=\"0\" cellpadding=\"3\" " |
105 // Test for "overview-frame.html" showing the "All Profiles" link. |
119 + "cellspacing=\"0\" summary=\"Interface Summary table, listing " |
106 checkOutput("overview-frame.html", true, |
120 + "interfaces, and an explanation\">" |
107 "<span><a href=\"profile-overview-frame.html\" " |
121 }, |
108 + "target=\"packageListFrame\">All Profiles</a></span>"); |
122 //Test for "overview-frame.html" showing the "All Profiles" link. |
109 |
123 { "overview-frame.html", |
110 // Test for "className.html" showing the profile information for the type. |
124 "<span><a href=\"profile-overview-frame.html\" " |
111 checkOutput("pkg2/Class1Pkg2.html", true, |
125 + "target=\"packageListFrame\">All Profiles</a></span>" |
112 "<div class=\"subTitle\">compact1, compact2, compact3</div>"); |
126 }, |
113 |
127 //Test for "className.html" showing the profile information for the type. |
114 checkOutput("index.html", true, |
128 { "pkg2/Class1Pkg2.html", |
115 "<frame src=\"overview-frame.html\" name=\"packageListFrame\" " |
129 "<div class=\"subTitle\">compact1, compact2, compact3</div>" |
116 + "title=\"All Packages\">"); |
130 }, |
117 |
131 { "index.html", |
118 // Test for "overview-summary.html" showing the profile list. |
132 "<frame src=\"overview-frame.html\" name=\"packageListFrame\" " + |
119 checkOutput("overview-summary.html", true, |
133 "title=\"All Packages\">" |
120 "<ul>\n" |
134 }, |
121 + "<li><a href=\"compact1-summary.html\" target=\"classFrame\">" |
135 //Test for "overview-summary.html" showing the profile list. |
122 + "compact1</a></li>\n" |
136 { "overview-summary.html", |
123 + "<li><a href=\"compact2-summary.html\" " |
137 "<ul>\n" + |
124 + "target=\"classFrame\">compact2</a></li>\n" |
138 "<li><a href=\"compact1-summary.html\" target=\"classFrame\">" + |
125 + "<li><a href=\"" |
139 "compact1</a></li>\n" + |
126 + "compact3-summary.html\" target=\"classFrame\">compact3</a></li>\n" |
140 "<li><a href=\"compact2-summary.html\" " + |
127 + "</ul>"); |
141 "target=\"classFrame\">compact2</a></li>\n" + |
128 |
142 "<li><a href=\"" + |
129 // Test deprecated class in profiles |
143 "compact3-summary.html\" target=\"classFrame\">compact3</a></li>\n" + |
130 checkOutput("compact1-summary.html", true, |
144 "</ul>" |
131 "<td class=\"colFirst\"><a href=\"pkg2/Class1Pkg2.html\" title=\"class in pkg2\">Class1Pkg2</a></td>\n" |
145 }, |
132 + "<td class=\"colLast\">Deprecated"); |
146 //Test deprecated class in profiles |
133 |
147 { "compact1-summary.html", |
134 checkOutput("deprecated-list.html", true, |
148 "<td class=\"colFirst\"><a href=\"pkg2/Class1Pkg2.html\" title=\"class in pkg2\">Class1Pkg2</a></td>\n" |
135 "<td class=\"colOne\"><a href=\"pkg2/Class1Pkg2.html\" title=\"class in pkg2\">pkg2.Class1Pkg2</a>\n" |
149 + "<td class=\"colLast\">Deprecated" |
136 + "<div class=\"block\"><span class=\"deprecationComment\">Class1Pkg2. This class is deprecated</span></div>"); |
150 }, |
137 |
151 { "deprecated-list.html", |
|
152 "<td class=\"colOne\"><a href=\"pkg2/Class1Pkg2.html\" title=\"class in pkg2\">pkg2.Class1Pkg2</a>\n" |
|
153 +"<div class=\"block\"><span class=\"deprecationComment\">Class1Pkg2. This class is deprecated</span></div>" |
|
154 }, |
|
155 //Test deprecated package in profile |
138 //Test deprecated package in profile |
156 { "deprecated-list.html", |
139 checkOutput("deprecated-list.html", true, |
157 "<td class=\"colOne\"><a href=\"pkgDeprecated/package-summary.html\">pkgDeprecated</a>\n" |
140 "<td class=\"colOne\"><a href=\"pkgDeprecated/package-summary.html\">pkgDeprecated</a>\n" |
158 +"<div class=\"block\"><span class=\"deprecationComment\">This package is <b>Deprecated</b>." |
141 + "<div class=\"block\"><span class=\"deprecationComment\">This package is <b>Deprecated</b>." |
159 + " Use pkg1.</span></div>" |
142 + " Use pkg1.</span></div>"); |
160 }, |
143 |
161 { "pkgDeprecated/package-summary.html", |
144 checkOutput("pkgDeprecated/package-summary.html", true, |
162 "<div class=\"deprecatedContent\"><span class=\"deprecatedLabel\">Deprecated.</span>\n" |
145 "<div class=\"deprecatedContent\"><span class=\"deprecatedLabel\">Deprecated.</span>\n" |
163 + "<div class=\"block\"><span class=\"deprecationComment\">This package is <b>Deprecated</b>." |
146 + "<div class=\"block\"><span class=\"deprecationComment\">This package is <b>Deprecated</b>." |
164 + " Use pkg1.</span></div>" |
147 + " Use pkg1.</span></div>"); |
165 }, |
148 |
166 // need to add teststring when JDK-8015496 will be fixed |
149 // TODO: need to add teststring when JDK-8015496 will be fixed |
167 //Test exception in profiles |
150 // Test exception in profiles |
168 { "compact1-summary.html", |
151 checkOutput("compact1-summary.html", true, |
169 "<table class=\"typeSummary\" " |
152 "<table class=\"typeSummary\" " |
170 + "border=\"0\" cellpadding=\"3\" cellspacing=\"0\" " |
153 + "border=\"0\" cellpadding=\"3\" cellspacing=\"0\" " |
171 + "summary=\"Exception Summary table, listing exceptions, and an explanation\">\n" |
154 + "summary=\"Exception Summary table, listing exceptions, and an explanation\">\n" |
172 + "<caption><span>Exception Summary</span><span class=\"tabEnd\">" |
155 + "<caption><span>Exception Summary</span><span class=\"tabEnd\">" |
173 + " </span></caption>\n" + |
156 + " </span></caption>\n" |
174 "<tr>\n" + |
157 + "<tr>\n" |
175 "<th class=\"colFirst\" " |
158 + "<th class=\"colFirst\" scope=\"col\">Exception</th>\n" |
176 + "scope=\"col\">Exception</th>\n" + |
159 + "<th class=\"colLast\" scope=\"col\">" |
177 "<th class=\"colLast\" scope=\"col\">" |
160 + "Description</th>\n" |
178 + "Description</th>\n" + |
161 + "</tr>\n" |
179 "</tr>\n" + |
162 + "<tbody>\n" |
180 "<tbody>\n" + |
163 + "<tr class=\"altColor\">\n" |
181 "<tr class=\"altColor\">\n" |
164 + "<td class=\"colFirst\"><a href=\"pkg2/ClassException.html\"" |
182 + "<td class=\"colFirst\"><a href=\"pkg2/ClassException.html\"" |
165 + " title=\"class in pkg2\">ClassException</a></td>"); |
183 + " title=\"class in pkg2\">ClassException</a></td>" |
166 |
184 }, |
|
185 //Test errors in profiles |
167 //Test errors in profiles |
186 { "compact1-summary.html", |
168 checkOutput("compact1-summary.html", true, |
187 "<table class=\"typeSummary\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" " |
169 "<table class=\"typeSummary\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" " |
188 + "summary=\"Error Summary table, listing errors, and an explanation\">\n" |
170 + "summary=\"Error Summary table, listing errors, and an explanation\">\n" |
189 + "<caption><span>Error Summary</span><span class=\"tabEnd\"> " |
171 + "<caption><span>Error Summary</span><span class=\"tabEnd\"> " |
190 + "</span></caption>\n" + |
172 + "</span></caption>\n" |
191 "<tr>\n" + |
173 + "<tr>\n" |
192 "<th class=\"colFirst\"" |
174 + "<th class=\"colFirst\" scope=\"col\">Error</th>\n" |
193 + " scope=\"col\">Error</th>\n" + |
175 + "<th class=\"colLast\" scope=\"col\">Description</th>\n" |
194 "<th class=\"colLast\" " |
176 + "</tr>\n" |
195 + "scope=\"col\">Description</th>\n" + |
177 + "<tbody>\n" |
196 "</tr>\n" + |
178 + "<tr class=\"altColor\">\n" |
197 "<tbody>\n" |
179 + "<td class=\"colFirst\">" |
198 + "<tr class=\"altColor\">\n" + |
180 + "<a href=\"pkg2/ClassError.html\" title=\"class in pkg2\">ClassError</a></td>"); |
199 "<td class=\"colFirst\">" |
181 |
200 + "<a href=\"pkg2/ClassError.html\" title=\"class in pkg2\">ClassError</a></td>" |
182 // negative tests |
201 } |
183 checkOutput("pkg3/Class2Pkg3.html", false, |
202 }; |
184 "<div class=\"subTitle\">compact1"); |
203 private static final String[][] PROFILES_NEGATED_TEST = { |
185 |
204 { "pkg3/Class2Pkg3.html", |
186 checkOutput("pkg3/Interface1Pkg3.html", false, |
205 "<div class=\"subTitle\">compact1" |
187 "<div class=\"subTitle\">compact1"); |
206 }, |
188 |
207 { "pkg3/Interface1Pkg3.html", |
189 checkOutput("pkg4/compact2-package-frame.html", false, |
208 "<div class=\"subTitle\">compact1" |
|
209 }, |
|
210 { "pkg4/compact2-package-frame.html", |
|
211 "<li><a href=\"Anno1Pkg4.html\" title=\"annotation in pkg4\" " |
190 "<li><a href=\"Anno1Pkg4.html\" title=\"annotation in pkg4\" " |
212 + "target=\"classFrame\">Anno1Pkg4</a></li>" |
191 + "target=\"classFrame\">Anno1Pkg4</a></li>"); |
213 }, |
192 |
214 { "compact1-summary.html","<li>Use</li>" |
193 checkOutput("compact1-summary.html", false, |
215 }, |
194 "<li>Use</li>"); |
216 { "compact2-summary.html", |
195 |
|
196 checkOutput("compact2-summary.html", false, |
217 "<ul class=\"blockList\">\n" + |
197 "<ul class=\"blockList\">\n" + |
218 "<li class=\"blockList\">\n" |
198 "<li class=\"blockList\">\n" |
219 + "<h3><a href=\"pkg2/compact2-package-summary.html\" target=\"classFrame\">" |
199 + "<h3><a href=\"pkg2/compact2-package-summary.html\" target=\"classFrame\">" |
220 + "pkg2</a></h3>\n" + |
200 + "pkg2</a></h3>\n" + |
221 "<li class=\"blockList\">\n" |
201 "<li class=\"blockList\">\n" |
222 + "<table class=\"typeSummary\" border=\"0\" " |
202 + "<table class=\"typeSummary\" border=\"0\" " |
223 + "cellpadding=\"3\" cellspacing=\"0\" summary=\"Class Summary table, " |
203 + "cellpadding=\"3\" cellspacing=\"0\" summary=\"Class Summary table, " |
224 + "listing classes, and an explanation\">" |
204 + "listing classes, and an explanation\">"); |
225 }, |
205 |
226 { "pkg5/compact3-package-summary.html", |
206 checkOutput("pkg5/compact3-package-summary.html", false, |
227 "<ul class=\"blockList\">\n" + |
207 "<ul class=\"blockList\">\n" + |
228 "<li class=\"blockList\">\n" |
208 "<li class=\"blockList\">\n" |
229 + "<li class=\"blockList\">\n" |
209 + "<li class=\"blockList\">\n" |
230 + "<table class=\"typeSummary\" border=\"0\" cellpadding=\"3\" " |
210 + "<table class=\"typeSummary\" border=\"0\" cellpadding=\"3\" " |
231 + "cellspacing=\"0\" summary=\"Interface Summary table, listing " |
211 + "cellspacing=\"0\" summary=\"Interface Summary table, listing " |
232 + "interfaces, and an explanation\">" |
212 + "interfaces, and an explanation\">"); |
233 } |
213 } |
234 }; |
214 |
235 private static final String[][] PACKAGES_TEST = { |
215 @Test |
236 { "overview-frame.html", |
216 void testPackages() { |
237 "<h2 title=\"Packages\">Packages</h2>" |
217 javadoc("-d", "out-packages", |
238 }, |
218 "-sourcepath", testSrc, |
239 { "pkg4/package-frame.html", |
219 "pkg1", "pkg2", "pkg3", "pkg4", "pkg5"); |
240 "<h1 class=\"bar\"><a href=\"../pkg4/package-summary.html\" " |
220 checkExit(Exit.OK); |
241 + "target=\"classFrame\">pkg4</a></h1>" |
221 |
242 }, |
222 checkOutput("overview-frame.html", true, |
243 { "pkg4/package-summary.html", |
223 "<h2 title=\"Packages\">Packages</h2>"); |
244 "<div class=\"header\">\n" + |
224 |
245 "<h1 title=\"Package\" " |
225 checkOutput("pkg4/package-frame.html", true, |
246 + "class=\"title\">Package pkg4</h1>\n" + |
226 "<h1 class=\"bar\"><a href=\"../pkg4/package-summary.html\" " |
247 "</div>" |
227 + "target=\"classFrame\">pkg4</a></h1>"); |
248 } |
228 |
249 }; |
229 checkOutput("pkg4/package-summary.html", true, |
250 private static final String[][] PACKAGES_NEGATED_TEST = { |
230 "<div class=\"header\">\n" |
251 { "overview-frame.html", |
231 + "<h1 title=\"Package\" " |
252 "<span><a href=\"profile-overview-frame.html\" " |
232 + "class=\"title\">Package pkg4</h1>\n" |
253 + "target=\"packageListFrame\">All Profiles</a></span>" |
233 + "</div>"); |
254 }, |
234 |
255 { "pkg2/Class1Pkg2.html", |
235 checkOutput("overview-frame.html", false, |
256 "<div class=\"subTitle\">compact1, compact2, compact3</div>" |
236 "<span><a href=\"profile-overview-frame.html\" " |
257 }, |
237 + "target=\"packageListFrame\">All Profiles</a></span>"); |
258 { "overview-summary.html", |
238 |
259 "<ul>\n" + |
239 checkOutput("pkg2/Class1Pkg2.html", false, |
260 "<li><a href=\"compact1-summary.html\" target=\"classFrame\">" + |
240 "<div class=\"subTitle\">compact1, compact2, compact3</div>"); |
261 "compact1</a></li>\n" + |
241 |
262 "<li><a href=\"compact2-summary.html\" " + |
242 checkOutput("overview-summary.html", false, |
263 "target=\"classFrame\">compact2</a></li>\n" + |
243 "<ul>\n" |
264 "<li><a href=\"" + |
244 + "<li><a href=\"compact1-summary.html\" target=\"classFrame\">" |
265 "compact3-summary.html\" target=\"classFrame\">compact3</a></li>\n" + |
245 + "compact1</a></li>\n" |
266 "</ul>" |
246 + "<li><a href=\"compact2-summary.html\" " |
267 } |
247 + "target=\"classFrame\">compact2</a></li>\n" |
268 }; |
248 + "<li><a href=\"" |
269 private static final String[] PACKAGES_NEGATED_FILE_TEST = { |
249 + "compact3-summary.html\" target=\"classFrame\">compact3</a></li>\n" |
270 "profile-overview-frame.html", |
250 + "</ul>"); |
271 "compact2-frame.html", |
251 |
272 "pkg2/compact2-package-frame.html", |
252 checkFiles(false, |
273 "compact2-summary.html", |
253 "profile-overview-frame.html", |
274 "pkg5/compact3-package-summary.html" |
254 "compact2-frame.html", |
275 }; |
255 "pkg2/compact2-package-frame.html", |
276 |
256 "compact2-summary.html", |
277 /** |
257 "pkg5/compact3-package-summary.html"); |
278 * The entry point of the test. |
|
279 * |
|
280 * @param args the array of command line arguments. |
|
281 */ |
|
282 public static void main(String[] args) { |
|
283 TestProfiles tester = new TestProfiles(); |
|
284 tester.run(ARGS1, PROFILES_TEST, PROFILES_NEGATED_TEST); |
|
285 tester.run(ARGS2, PACKAGES_TEST, PACKAGES_NEGATED_TEST, NO_FILE_TEST, PACKAGES_NEGATED_FILE_TEST); |
|
286 tester.printSummary(); |
|
287 } |
258 } |
288 } |
259 } |