author | jjg |
Wed, 16 Apr 2014 16:17:09 -0700 | |
changeset 23971 | f5ff1f5a8dee |
parent 23139 | 612191246a7d |
child 24065 | fc4022e50129 |
permissions | -rw-r--r-- |
10 | 1 |
/* |
23971 | 2 |
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved. |
10 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. |
|
8 |
* |
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
* accompanied this code). |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License version |
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
* |
|
5520 | 19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
20 |
* or visit www.oracle.com if you need additional information or have any |
|
21 |
* questions. |
|
10 | 22 |
*/ |
23 |
||
24 |
/* |
|
25 |
* @test |
|
21478
fa4c7cda1b41
8026567: Use meaningful style names for strong and italic styles.
bpatel
parents:
21008
diff
changeset
|
26 |
* @bug 4780441 4874845 4978816 8014017 8016328 8025633 8026567 |
10 | 27 |
* @summary Make sure that when the -private flag is not used, members |
28 |
* inherited from package private class are documented in the child. |
|
29 |
* |
|
30 |
* Make sure that when a method inherits documentation from a method |
|
31 |
* in a non-public class/interface, the non-public class/interface |
|
32 |
* is not mentioned anywhere (not even in the signature or tree). |
|
33 |
* |
|
34 |
* Make sure that when a private interface method with generic parameters |
|
35 |
* is implemented, the comments can be inherited properly. |
|
18651 | 36 |
* |
37 |
* Make sure when no modifier appear in the class signature, the |
|
38 |
* signature is displayed correctly without extra space at the beginning. |
|
10 | 39 |
* @author jamieh |
40 |
* @library ../lib/ |
|
18651 | 41 |
* @build JavadocTester TestPrivateClasses |
10 | 42 |
* @run main TestPrivateClasses |
43 |
*/ |
|
44 |
||
45 |
public class TestPrivateClasses extends JavadocTester { |
|
46 |
||
47 |
//Test information. |
|
18651 | 48 |
private static final String BUG_ID = "4780441-4874845-4978816-8014017"; |
10 | 49 |
|
50 |
//Javadoc arguments. |
|
51 |
private static final String[] ARGS1 = new String[] { |
|
23139
612191246a7d
8031670: Remove unneeded -source options in javadoc tests
darcy
parents:
21478
diff
changeset
|
52 |
"-d", BUG_ID + "-1", "-sourcepath", SRC_DIR, "pkg", "pkg2" |
10 | 53 |
}; |
54 |
private static final String[] ARGS2 = new String[] { |
|
55 |
"-d", BUG_ID + "-2", "-sourcepath", SRC_DIR, "-private", |
|
23139
612191246a7d
8031670: Remove unneeded -source options in javadoc tests
darcy
parents:
21478
diff
changeset
|
56 |
"pkg", "pkg2" |
10 | 57 |
}; |
58 |
||
59 |
// Test output when -private flag is not used. |
|
60 |
private static final String[][] TEST1 = { |
|
61 |
// Field inheritence from non-public superclass. |
|
23971 | 62 |
{BUG_ID + "-1/pkg/PublicChild.html", |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
63 |
"<a href=\"../pkg/PublicChild.html#fieldInheritedFromParent\">" + |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
64 |
"fieldInheritedFromParent</a>" |
10 | 65 |
}, |
66 |
||
67 |
// Method inheritence from non-public superclass. |
|
23971 | 68 |
{BUG_ID + "-1/pkg/PublicChild.html", |
21008
af0b915df7cc
8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
20257
diff
changeset
|
69 |
"<a href=\"../pkg/PublicChild.html#methodInheritedFromParent-int-\">" + |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
70 |
"methodInheritedFromParent</a>" |
10 | 71 |
}, |
72 |
||
73 |
// Field inheritence from non-public superinterface. |
|
23971 | 74 |
{BUG_ID + "-1/pkg/PublicInterface.html", |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
75 |
"<a href=\"../pkg/PublicInterface.html#fieldInheritedFromInterface\">" + |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
76 |
"fieldInheritedFromInterface</a>" |
10 | 77 |
}, |
78 |
||
79 |
// Method inheritence from non-public superinterface. |
|
23971 | 80 |
{BUG_ID + "-1/pkg/PublicInterface.html", |
21008
af0b915df7cc
8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
20257
diff
changeset
|
81 |
"<a href=\"../pkg/PublicInterface.html#methodInterface-int-\">" + |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
82 |
"methodInterface</a>" |
10 | 83 |
}, |
84 |
||
85 |
// private class does not show up in tree |
|
23971 | 86 |
{BUG_ID + "-1/pkg/PublicChild.html", |
87 |
"<ul class=\"inheritance\">\n" + |
|
88 |
"<li>java.lang.Object</li>\n" + |
|
89 |
"<li>\n" + |
|
90 |
"<ul class=\"inheritance\">\n" + |
|
91 |
"<li>pkg.PublicChild</li>\n" + |
|
92 |
"</ul>\n" + |
|
93 |
"</li>\n" + |
|
94 |
"</ul>" |
|
10 | 95 |
}, |
96 |
||
97 |
// Method is documented as though it is declared in the inheriting method. |
|
23971 | 98 |
{BUG_ID + "-1/pkg/PublicChild.html", |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
99 |
"<pre>public void methodInheritedFromParent(int p1)" |
10 | 100 |
}, |
101 |
||
102 |
//Make sure implemented interfaces from private superclass are inherited |
|
23971 | 103 |
{BUG_ID + "-1/pkg/PublicInterface.html", |
104 |
"<dl>\n" + |
|
105 |
"<dt>All Known Implementing Classes:</dt>\n" + |
|
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
106 |
"<dd><a href=\"../pkg/PublicChild.html\" title=\"class in pkg\">" + |
23971 | 107 |
"PublicChild</a></dd>\n" + |
108 |
"</dl>"}, |
|
10 | 109 |
|
23971 | 110 |
{BUG_ID + "-1/pkg/PublicChild.html", |
111 |
"<dl>\n" + |
|
112 |
"<dt>All Implemented Interfaces:</dt>\n" + |
|
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
113 |
"<dd><a href=\"../pkg/PublicInterface.html\" title=\"interface in pkg\">" + |
23971 | 114 |
"PublicInterface</a></dd>\n" + |
115 |
"</dl>"}, |
|
10 | 116 |
|
117 |
//Generic interface method test. |
|
23971 | 118 |
{BUG_ID + "-1/pkg2/C.html", |
10 | 119 |
"This comment should get copied to the implementing class"}, |
120 |
}; |
|
121 |
private static final String[][] NEGATED_TEST1 = { |
|
122 |
// Should not document that a method overrides method from private class. |
|
23971 | 123 |
{BUG_ID + "-1/pkg/PublicChild.html", |
21478
fa4c7cda1b41
8026567: Use meaningful style names for strong and italic styles.
bpatel
parents:
21008
diff
changeset
|
124 |
"<span class=\"overrideSpecifyLabel\">Overrides:</span>"}, |
10 | 125 |
// Should not document that a method specified by private interface. |
23971 | 126 |
{BUG_ID + "-1/pkg/PublicChild.html", |
21478
fa4c7cda1b41
8026567: Use meaningful style names for strong and italic styles.
bpatel
parents:
21008
diff
changeset
|
127 |
"<span class=\"overrideSpecifyLabel\">Specified by:</span>"}, |
23971 | 128 |
{BUG_ID + "-1/pkg/PublicInterface.html", |
21478
fa4c7cda1b41
8026567: Use meaningful style names for strong and italic styles.
bpatel
parents:
21008
diff
changeset
|
129 |
"<span class=\"overrideSpecifyLabel\">Specified by:</span>"}, |
10 | 130 |
// Should not mention that any documentation was copied. |
23971 | 131 |
{BUG_ID + "-1/pkg/PublicChild.html", |
10 | 132 |
"Description copied from"}, |
23971 | 133 |
{BUG_ID + "-1/pkg/PublicInterface.html", |
10 | 134 |
"Description copied from"}, |
135 |
// Don't extend private classes or interfaces |
|
23971 | 136 |
{BUG_ID + "-1/pkg/PublicChild.html", |
10 | 137 |
"PrivateParent"}, |
23971 | 138 |
{BUG_ID + "-1/pkg/PublicInterface.html", |
10 | 139 |
"PrivateInterface"}, |
23971 | 140 |
{BUG_ID + "-1/pkg/PublicChild.html", |
10 | 141 |
"PrivateInterface"}, |
23971 | 142 |
{BUG_ID + "-1/pkg/PublicInterface.html", |
10 | 143 |
"All Superinterfaces"}, |
144 |
// Make inherited constant are documented correctly. |
|
23971 | 145 |
{BUG_ID + "-1/constant-values.html", |
10 | 146 |
"PrivateInterface"}, |
147 |
||
148 |
//Do not inherit private interface method with generic parameters. |
|
149 |
//This method has been implemented. |
|
23971 | 150 |
{BUG_ID + "-1/pkg2/C.html", |
21478
fa4c7cda1b41
8026567: Use meaningful style names for strong and italic styles.
bpatel
parents:
21008
diff
changeset
|
151 |
"<span class=\"memberNameLink\"><a href=\"../pkg2/I.html#hello-T-\">hello</a></span>"}, |
10 | 152 |
}; |
153 |
||
154 |
// Test output when -private flag is used. |
|
155 |
private static final String[][] TEST2 = { |
|
156 |
// Field inheritence from non-public superclass. |
|
23971 | 157 |
{BUG_ID + "-2/pkg/PublicChild.html", |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
158 |
"Fields inherited from class pkg." + |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
159 |
"<a href=\"../pkg/PrivateParent.html\" title=\"class in pkg\">" + |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
160 |
"PrivateParent</a>" |
10 | 161 |
}, |
23971 | 162 |
{BUG_ID + "-2/pkg/PublicChild.html", |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
163 |
"<a href=\"../pkg/PrivateParent.html#fieldInheritedFromParent\">" + |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
164 |
"fieldInheritedFromParent</a>" |
10 | 165 |
}, |
166 |
// Field inheritence from non-public superinterface. |
|
23971 | 167 |
{BUG_ID + "-2/pkg/PublicInterface.html", |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
168 |
"Fields inherited from interface pkg." + |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
169 |
"<a href=\"../pkg/PrivateInterface.html\" title=\"interface in pkg\">" + |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
170 |
"PrivateInterface</a>" |
10 | 171 |
}, |
23971 | 172 |
{BUG_ID + "-2/pkg/PublicInterface.html", |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
173 |
"<a href=\"../pkg/PrivateInterface.html#fieldInheritedFromInterface\">" + |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
174 |
"fieldInheritedFromInterface</a>" |
10 | 175 |
}, |
176 |
// Method inheritence from non-public superclass. |
|
23971 | 177 |
{BUG_ID + "-2/pkg/PublicChild.html", |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
178 |
"Methods inherited from class pkg." + |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
179 |
"<a href=\"../pkg/PrivateParent.html\" title=\"class in pkg\">" + |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
180 |
"PrivateParent</a>" |
10 | 181 |
}, |
23971 | 182 |
{BUG_ID + "-2/pkg/PublicChild.html", |
21008
af0b915df7cc
8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
20257
diff
changeset
|
183 |
"<a href=\"../pkg/PrivateParent.html#methodInheritedFromParent-int-\">" + |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
184 |
"methodInheritedFromParent</a>" |
10 | 185 |
}, |
186 |
// Should document that a method overrides method from private class. |
|
23971 | 187 |
{BUG_ID + "-2/pkg/PublicChild.html", |
188 |
"<dt><span class=\"overrideSpecifyLabel\">Overrides:</span></dt>\n" + |
|
21008
af0b915df7cc
8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
20257
diff
changeset
|
189 |
"<dd><code><a href=\"../pkg/PrivateParent.html#methodOverridenFromParent-char:A-int-T-V-java.util.List-\">" + |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
190 |
"methodOverridenFromParent</a></code> in class <code>" + |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
191 |
"<a href=\"../pkg/PrivateParent.html\" title=\"class in pkg\">" + |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
192 |
"PrivateParent</a></code></dd>"}, |
10 | 193 |
// Should document that a method is specified by private interface. |
23971 | 194 |
{BUG_ID + "-2/pkg/PublicChild.html", |
195 |
"<dt><span class=\"overrideSpecifyLabel\">Specified by:</span></dt>\n" + |
|
21008
af0b915df7cc
8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
20257
diff
changeset
|
196 |
"<dd><code><a href=\"../pkg/PrivateInterface.html#methodInterface-int-\">" + |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
197 |
"methodInterface</a></code> in interface <code>" + |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
198 |
"<a href=\"../pkg/PrivateInterface.html\" title=\"interface in pkg\">" + |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
199 |
"PrivateInterface</a></code></dd>"}, |
10 | 200 |
// Method inheritence from non-public superinterface. |
23971 | 201 |
{BUG_ID + "-2/pkg/PublicInterface.html", |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
202 |
"Methods inherited from interface pkg." + |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
203 |
"<a href=\"../pkg/PrivateInterface.html\" title=\"interface in pkg\">" + |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
204 |
"PrivateInterface</a>" |
10 | 205 |
}, |
23971 | 206 |
{BUG_ID + "-2/pkg/PrivateInterface.html", |
21008
af0b915df7cc
8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
20257
diff
changeset
|
207 |
"<a href=\"../pkg/PrivateInterface.html#methodInterface-int-\">" + |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
208 |
"methodInterface</a>" |
10 | 209 |
}, |
210 |
// Should mention that any documentation was copied. |
|
23971 | 211 |
{BUG_ID + "-2/pkg/PublicChild.html", |
10 | 212 |
"Description copied from"}, |
213 |
// Extend documented private classes or interfaces |
|
23971 | 214 |
{BUG_ID + "-2/pkg/PublicChild.html", |
10 | 215 |
"extends"}, |
23971 | 216 |
{BUG_ID + "-2/pkg/PublicInterface.html", |
10 | 217 |
"extends"}, |
23971 | 218 |
{BUG_ID + "-2/pkg/PublicInterface.html", |
10 | 219 |
"All Superinterfaces"}, |
220 |
||
221 |
//Make sure implemented interfaces from private superclass are inherited |
|
23971 | 222 |
{BUG_ID + "-2/pkg/PublicInterface.html", |
223 |
"<dl>\n" + |
|
224 |
"<dt>All Known Implementing Classes:</dt>\n" + |
|
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
225 |
"<dd><a href=\"../pkg/PrivateParent.html\" title=\"class in pkg\">" + |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
226 |
"PrivateParent</a>, " + |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
227 |
"<a href=\"../pkg/PublicChild.html\" title=\"class in pkg\">PublicChild" + |
23971 | 228 |
"</a></dd>\n" + |
229 |
"</dl>"}, |
|
10 | 230 |
|
23971 | 231 |
{BUG_ID + "-2/pkg/PublicChild.html", |
232 |
"<dl>\n" + |
|
233 |
"<dt>All Implemented Interfaces:</dt>\n" + |
|
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
234 |
"<dd><a href=\"../pkg/PrivateInterface.html\" title=\"interface in pkg\">" + |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
235 |
"PrivateInterface</a>, " + |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
236 |
"<a href=\"../pkg/PublicInterface.html\" title=\"interface in pkg\">" + |
23971 | 237 |
"PublicInterface</a></dd>\n" + |
238 |
"</dl>"}, |
|
10 | 239 |
|
240 |
//Since private flag is used, we can document that private interface method |
|
241 |
//with generic parameters has been implemented. |
|
23971 | 242 |
{BUG_ID + "-2/pkg2/C.html", |
21478
fa4c7cda1b41
8026567: Use meaningful style names for strong and italic styles.
bpatel
parents:
21008
diff
changeset
|
243 |
"<span class=\"descfrmTypeLabel\">Description copied from interface: <code>" + |
21008
af0b915df7cc
8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
20257
diff
changeset
|
244 |
"<a href=\"../pkg2/I.html#hello-T-\">I</a></code></span>"}, |
10 | 245 |
|
23971 | 246 |
{BUG_ID + "-2/pkg2/C.html", |
247 |
"<dt><span class=\"overrideSpecifyLabel\">Specified by:</span></dt>\n" + |
|
21008
af0b915df7cc
8025633: Fix javadoc to generate valid anchor names
bpatel
parents:
20257
diff
changeset
|
248 |
"<dd><code><a href=\"../pkg2/I.html#hello-T-\">hello</a></code>" + |
7614
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
249 |
" in interface <code>" + |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
250 |
"<a href=\"../pkg2/I.html\" title=\"interface in pkg2\">I</a>" + |
cfadc977ca75
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
bpatel
parents:
5520
diff
changeset
|
251 |
"<java.lang.String></code></dd>"}, |
18651 | 252 |
|
253 |
//Make sure when no modifier appear in the class signature, the |
|
254 |
//signature is displayed correctly without extra space at the beginning. |
|
23971 | 255 |
{BUG_ID + "-2/pkg/PrivateParent.html", |
21478
fa4c7cda1b41
8026567: Use meaningful style names for strong and italic styles.
bpatel
parents:
21008
diff
changeset
|
256 |
"<pre>class <span class=\"typeNameLabel\">PrivateParent</span>"}, |
18651 | 257 |
|
23971 | 258 |
{BUG_ID + "-2/pkg/PublicChild.html", |
21478
fa4c7cda1b41
8026567: Use meaningful style names for strong and italic styles.
bpatel
parents:
21008
diff
changeset
|
259 |
"<pre>public class <span class=\"typeNameLabel\">PublicChild</span>"}, |
10 | 260 |
}; |
18651 | 261 |
private static final String[][] NEGATED_TEST2 = { |
23971 | 262 |
{BUG_ID + "-2/pkg/PrivateParent.html", |
21478
fa4c7cda1b41
8026567: Use meaningful style names for strong and italic styles.
bpatel
parents:
21008
diff
changeset
|
263 |
"<pre> class <span class=\"typeNameLabel\">PrivateParent</span>"}, |
18651 | 264 |
}; |
10 | 265 |
|
266 |
/** |
|
267 |
* The entry point of the test. |
|
268 |
* @param args the array of command line arguments. |
|
269 |
*/ |
|
270 |
public static void main(String[] args) { |
|
271 |
TestPrivateClasses tester = new TestPrivateClasses(); |
|
272 |
run(tester, ARGS1, TEST1, NEGATED_TEST1); |
|
273 |
run(tester, ARGS2, TEST2, NEGATED_TEST2); |
|
274 |
tester.printSummary(); |
|
275 |
} |
|
276 |
||
277 |
/** |
|
278 |
* {@inheritDoc} |
|
279 |
*/ |
|
280 |
public String getBugId() { |
|
281 |
return BUG_ID; |
|
282 |
} |
|
283 |
||
284 |
/** |
|
285 |
* {@inheritDoc} |
|
286 |
*/ |
|
287 |
public String getBugName() { |
|
288 |
return getClass().getName(); |
|
289 |
} |
|
290 |
} |