test/com/sun/javadoc/testMemberInheritence/TestMemberInheritence.java

changeset 766
90af8d87741f
parent 554
9d9f26857129
child 798
4868a36f6fd8
equal deleted inserted replaced
758:bcbc86cc5b31 766:90af8d87741f
38 private static final String BUG_ID = "4638588-4635809-6256068-6270645"; 38 private static final String BUG_ID = "4638588-4635809-6256068-6270645";
39 39
40 private static final String[][] TEST = { 40 private static final String[][] TEST = {
41 //Public field should be inherited 41 //Public field should be inherited
42 {BUG_ID + FS + "pkg" + FS + "SubClass.html", 42 {BUG_ID + FS + "pkg" + FS + "SubClass.html",
43 "<A HREF=\"../pkg/BaseClass.html#pubField\">"}, 43 "<a href=\"../pkg/BaseClass.html#pubField\">"},
44 44
45 //Public method should be inherited 45 //Public method should be inherited
46 {BUG_ID + FS + "pkg" + FS + "SubClass.html", 46 {BUG_ID + FS + "pkg" + FS + "SubClass.html",
47 "<A HREF=\"../pkg/BaseClass.html#pubMethod()\">"}, 47 "<a href=\"../pkg/BaseClass.html#pubMethod()\">"},
48 48
49 //Public inner class should be inherited. 49 //Public inner class should be inherited.
50 {BUG_ID + FS + "pkg" + FS + "SubClass.html", 50 {BUG_ID + FS + "pkg" + FS + "SubClass.html",
51 "<A HREF=\"../pkg/BaseClass.pubInnerClass.html\" title=\"class in pkg\">"}, 51 "<a href=\"../pkg/BaseClass.pubInnerClass.html\" title=\"class in pkg\">"},
52 52
53 //Protected field should be inherited 53 //Protected field should be inherited
54 {BUG_ID + FS + "pkg" + FS + "SubClass.html", 54 {BUG_ID + FS + "pkg" + FS + "SubClass.html",
55 "<A HREF=\"../pkg/BaseClass.html#proField\">"}, 55 "<a href=\"../pkg/BaseClass.html#proField\">"},
56 56
57 //Protected method should be inherited 57 //Protected method should be inherited
58 {BUG_ID + FS + "pkg" + FS + "SubClass.html", 58 {BUG_ID + FS + "pkg" + FS + "SubClass.html",
59 "<A HREF=\"../pkg/BaseClass.html#proMethod()\">"}, 59 "<a href=\"../pkg/BaseClass.html#proMethod()\">"},
60 60
61 //Protected inner class should be inherited. 61 //Protected inner class should be inherited.
62 {BUG_ID + FS + "pkg" + FS + "SubClass.html", 62 {BUG_ID + FS + "pkg" + FS + "SubClass.html",
63 "<A HREF=\"../pkg/BaseClass.proInnerClass.html\" title=\"class in pkg\">"}, 63 "<a href=\"../pkg/BaseClass.proInnerClass.html\" title=\"class in pkg\">"},
64 64
65 // New labels as of 1.5.0 65 // New labels as of 1.5.0
66 {BUG_ID + FS + "pkg" + FS + "SubClass.html", 66 {BUG_ID + FS + "pkg" + FS + "SubClass.html",
67 "<STRONG>Nested classes/interfaces inherited from class pkg." + 67 "Nested classes/interfaces inherited from class&nbsp;pkg." +
68 "<A HREF=\"../pkg/BaseClass.html\" title=\"class in pkg\">" + 68 "<a href=\"../pkg/BaseClass.html\" title=\"class in pkg\">BaseClass</a>"},
69 "BaseClass</A></STRONG>"},
70 {BUG_ID + FS + "pkg" + FS + "SubClass.html", 69 {BUG_ID + FS + "pkg" + FS + "SubClass.html",
71 "<STRONG>Nested classes/interfaces inherited from interface pkg." + 70 "Nested classes/interfaces inherited from interface&nbsp;pkg." +
72 "<A HREF=\"../pkg/BaseInterface.html\" title=\"interface in pkg\">" + 71 "<a href=\"../pkg/BaseInterface.html\" title=\"interface in pkg\">BaseInterface</a>"},
73 "BaseInterface</A></STRONG>"},
74 72
75 // Test overriding/implementing methods with generic parameters. 73 // Test overriding/implementing methods with generic parameters.
76 {BUG_ID + FS + "pkg" + FS + "BaseClass.html", 74 {BUG_ID + FS + "pkg" + FS + "BaseClass.html",
77 "<DT><STRONG>Specified by:</STRONG></DT><DD><CODE><A HREF=\"../pkg/BaseInterface.html#getAnnotation(java.lang.Class)\">getAnnotation</A></CODE> in interface <CODE><A HREF=\"../pkg/BaseInterface.html\" title=\"interface in pkg\">BaseInterface</A></CODE></DD>"+NL+"</DL>"}, 75 "<dl>" + NL + "<dt><strong>Specified by:</strong></dt>" + NL +
76 "<dd><code><a href=\"../pkg/BaseInterface.html#getAnnotation(java.lang.Class)\">" +
77 "getAnnotation</a></code>&nbsp;in interface&nbsp;<code>" +
78 "<a href=\"../pkg/BaseInterface.html\" title=\"interface in pkg\">" +
79 "BaseInterface</a></code></dd>" + NL + "</dl>"},
78 80
79 // Test diamond inheritence member summary (6256068) 81 // Test diamond inheritence member summary (6256068)
80 {BUG_ID + FS + "diamond" + FS + "Z.html", 82 {BUG_ID + FS + "diamond" + FS + "Z.html",
81 "<TD><CODE><A HREF=\"../diamond/A.html#aMethod()\">aMethod</A></CODE></TD>"}, 83 "<code><a href=\"../diamond/A.html#aMethod()\">aMethod</a></code>"},
82 84
83 // Test that doc is inherited from closed parent (6270645) 85 // Test that doc is inherited from closed parent (6270645)
84 {BUG_ID + FS + "inheritDist" + FS + "C.html", 86 {BUG_ID + FS + "inheritDist" + FS + "C.html",
85 "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m1-B</TD>"}, 87 "<div class=\"block\">m1-B</div>"},
86 88
87 }; 89 };
88 90
89 private static final String[][] NEGATED_TEST = { 91 private static final String[][] NEGATED_TEST = {
90 {BUG_ID + FS + "pkg" + FS + "SubClass.html", 92 {BUG_ID + FS + "pkg" + FS + "SubClass.html",
91 "<A HREF=\"../pkg/BaseClass.html#staticMethod()\">staticMethod</A></CODE>"}, 93 "<a href=\"../pkg/BaseClass.html#staticMethod()\">staticMethod</a></code>"},
92 }; 94 };
93 private static final String[] ARGS = 95 private static final String[] ARGS =
94 new String[] { 96 new String[] {
95 "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg", "diamond", "inheritDist"}; 97 "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg", "diamond", "inheritDist"};
96 98

mercurial