""",
"Classes.GP.html#m0()",
"Classes.GP.m0()",
"#m1()",
"m1()",
"Classes.P.html#m2()",
"Classes.P.m2()",
"Classes.P.html#m3()",
"Classes.P.m3()",
"m4(java.lang.String,java.lang.String)",
"Classes.P.html#m5()",
"Classes.P.m5()",
"#m6()",
"m6()",
"#m7()",
"m7()",
"End of links",
// Check @see
"See Also:",
"Classes.GP.html#m0()",
"Classes.GP.m0()",
"#m1()",
"m1()",
"Classes.P.html#m2()",
"Classes.P.m2()",
"Classes.P.html#m3()",
"Classes.P.m3()",
"#m4(java.lang.String,java.lang.String)",
"m4(String k, String v)",
"""
Classes.P.html#m5()"> ",
"""
Interfaces.A.html#m0()">Classes.P.m5()""",
"#m6()\">
m6()",
"#m7()\">
m7()"
);
// Tests for interfaces
// Make sure the static methods in the super interface
// do not make it to this interface
checkOutput("pkg5/Interfaces.D.html", false,
"msd", "msn");
checkOrder("pkg5/Interfaces.D.html",
"Start of links
Interfaces.A.m0()""",
"""
Interfaces.A.html#m1()">
Interfaces.A.m1()""",
"""
Interfaces.A.html#m2()">
Interfaces.A.m2()""",
"""
Interfaces.A.html#m3()">
Interfaces.A.m3()""",
"#m()\">
m()",
"#n()\">
n()",
"""
Interfaces.C.html#o()">
Interfaces.C.o()""",
"End of links",
// Check @see links
"See Also:",
"""
Interfaces.A.html#m0()">
Interfaces.A.m0()""",
"""
Interfaces.A.html#m1()">
Interfaces.A.m1()""",
"""
Interfaces.A.html#m2()">
Interfaces.A.m2()""",
"""
Interfaces.A.html#m3()">
Interfaces.A.m3()""",
"#m()\">
m()",
"#n()\">
n()",
"""
Interfaces.C.html#o()">
Interfaces.C.o()""",
// Check properties
"""
Properties declared in interface pkg5.Interfaces.A""",
// Check nested classes
"Nested classes/interfaces declared in interface pkg5.",
"Interfaces.A",
"Interfaces.A.AA.html",
"Interfaces.A.AA",
// Check Fields
"""
Fields declared in interface pkg5.QUOTE",
"Interfaces.A.html#rate\">rate",
// Check Method Summary
"Method Summary",
"#m()\" class=\"member-name-link\">m",
"#n()\" class=\"member-name-link\">n",
// Check footnotes
"""
Methods declared in interface pkg5.getRate""",
"""
Interfaces.A.html#rateProperty()">rateProperty""",
"Interfaces.A.html#setRate(double)",
"""
Methods declared in interface pkg5.m1",
"Interfaces.B.html#m3()\">m3",
"""
Methods declared in interface pkg5.o"""
);
// Test synthetic values and valuesof of an enum.
checkOrder("index-all.html",
"""
M
""",
"""
m()""",
"""
m()""",
"""
m0()""",
"""
m0()""",
"""
m1()""",
"""
m1()""",
"""
m1()""",
"""
m1()""",
"""
m2()""",
"""
m2()""",
"""
m3()""",
"""
m3()""",
"""
m3()""",
"""
m4(String, String)""",
"""
m4(K, V)""",
"""
m5()""",
"""
m6()""",
"""
m6()""",
"""
m7()""",
"""
m7()""",
"Returns the enum constant of this class with the specified name.",
"""
Returns an array containing the constants of this enum class, in
the order they are declared."""
);
// Check methods with covariant return types, changes in modifiers or thrown exceptions.
// Only those should be shown in summary; m1, m3, m9 should listed as declared in Base
checkOutput("pkg6/Sub.html", true,
"""
java.lang.String
\
m2()
void
m4\
()
java.lang.Object
m\
5()
final java.lang.Object
m6\
()
java.lang.Object
m\
7()
abstract java.lang.Object
m8\
()
Methods declared in int\
erface pkg7.Annotate\
dBase
m1
Ann\
otatedBase
""");
checkOutput("pkg7/AnnotatedSub3.html", true,
"""
m1 in interface
AnnotatedBase
p1
- first parameterp2
- second parameterAnn\
otatedBase
""");
checkOutput("pkg7/AnnotatedSub4.html", true,
"""
m1 in interface
AnnotatedBase
p1
- first parameterp2
- second parameterAnn\
otatedBase
""");
checkOutput("pkg7/AnnotatedSub5.html", true,
"""
m1 in interface
AnnotatedBase
p1
- first parameterp2
- second parameterAnn\
otatedBase
""");
checkOutput("pkg7/AnnotatedSub6.html", true,
"""
m1 in interface
AnnotatedBase
p1
- first parameterp2
- second parameterAnn\
otatedBase
""");
checkOutput("pkg7/AnnotatedSub7.html", true,
"""
m1 in interface
AnnotatedBase
p1
- first parameterp2
- second parameterAnn\
otatedBase
""");
checkOutput("pkg7/AnnotatedSub8.html", true,
"""
m1 in interface
AnnotatedBase
p1
- first parameterp2
- second parameterAnn\
otatedBase
""");
}
@Test
public void testPolymorphicDetail() {
javadoc("-d", "out-polymorphic-detail",
"-sourcepath", testSrc,
"--override-methods=detail",
"pkg8");
checkExit(Exit.OK);
checkOutput("pkg8/C.html", true,
"""
m1 in interface
AnnotatedBase
p1
- first parameterp2
- second parameterm1
in class \
P
m2
in class \
P
m3
in class \
P
m1
in class \
P
m2
in class \
P
m3
in class \
P
m1
in class \
GP
m2
in class \
GP
m3
in class \
GP
m1
in class \
P