< prev index next >

test/langtools/jdk/javadoc/doclet/testMemberInheritance/TestMemberInheritance.java

Print this page




  55                 "<a href=\"BaseClass.html#pubField\">",
  56                 // Public method should be inherited
  57                 "<a href=\"BaseClass.html#pubMethod()\">",
  58                 // Public inner class should be inherited.
  59                 "<a href=\"BaseClass.pubInnerClass.html\" title=\"class in pkg\">",
  60                 // Protected field should be inherited
  61                 "<a href=\"BaseClass.html#proField\">",
  62                 // Protected method should be inherited
  63                 "<a href=\"BaseClass.html#proMethod()\">",
  64                 // Protected inner class should be inherited.
  65                 "<a href=\"BaseClass.proInnerClass.html\" title=\"class in pkg\">",
  66                 // New labels as of 1.5.0
  67                 "Nested classes/interfaces inherited from class&nbsp;pkg."
  68                 + "<a href=\"BaseClass.html\" title=\"class in pkg\">BaseClass</a>",
  69                 "Nested classes/interfaces inherited from interface&nbsp;pkg."
  70                 + "<a href=\"BaseInterface.html\" title=\"interface in pkg\">BaseInterface</a>");
  71 
  72         checkOutput("pkg/BaseClass.html", true,
  73                 // Test overriding/implementing methods with generic parameters.
  74                 "<dl>\n"
  75                 + "<dt><span class=\"overrideSpecifyLabel\">Specified by:</span></dt>\n"
  76                 + "<dd><code><a href=\"BaseInterface.html#getAnnotation(java.lang.Class)\">"
  77                 + "getAnnotation</a></code>&nbsp;in interface&nbsp;<code>"
  78                 + "<a href=\"BaseInterface.html\" title=\"interface in pkg\">"
  79                 + "BaseInterface</a></code></dd>\n"
  80                 + "</dl>");
  81 
  82         checkOutput("diamond/Z.html", true,
  83                 // Test diamond inheritance member summary (6256068)
  84                 "<code><a href=\"A.html#aMethod()\">aMethod</a></code>");
  85 
  86         checkOutput("inheritDist/C.html", true,
  87                 // Test that doc is inherited from closed parent (6270645)
  88                 "<div class=\"block\">m1-B</div>");
  89 
  90         checkOutput("pkg/SubClass.html", false,
  91                 "<a href=\"BaseClass.html#staticMethod()\">staticMethod</a></code>");
  92 
  93         checkOutput("pkg1/Implementer.html", true,
  94                 // ensure the method makes it
  95                 "<td class=\"colFirst\"><code>static java.time.Period</code></td>\n"
  96                 + "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\">"
  97                 + "<a href=\"#between(java.time.LocalDate,java.time.LocalDate)\">"
  98                 + "between</a></span>​(java.time.LocalDate&nbsp;startDateInclusive,\n"
  99                 + "       java.time.LocalDate&nbsp;endDateExclusive)</code></th>");
 100 
 101         checkOutput("pkg1/Implementer.html", false,
 102                 "<h3>Methods inherited from interface&nbsp;pkg1.<a href=\"Interface.html\""
 103                 + " title=\"interface in pkg1\">Interface</a></h3>\n"
 104                 + "<code><a href=\"Interface.html#between(java.time.chrono.ChronoLocalDate"
 105                 + ",java.time.chrono.ChronoLocalDate)\">between</a></code>"
 106         );
 107     }
 108 }


  55                 "<a href=\"BaseClass.html#pubField\">",
  56                 // Public method should be inherited
  57                 "<a href=\"BaseClass.html#pubMethod()\">",
  58                 // Public inner class should be inherited.
  59                 "<a href=\"BaseClass.pubInnerClass.html\" title=\"class in pkg\">",
  60                 // Protected field should be inherited
  61                 "<a href=\"BaseClass.html#proField\">",
  62                 // Protected method should be inherited
  63                 "<a href=\"BaseClass.html#proMethod()\">",
  64                 // Protected inner class should be inherited.
  65                 "<a href=\"BaseClass.proInnerClass.html\" title=\"class in pkg\">",
  66                 // New labels as of 1.5.0
  67                 "Nested classes/interfaces inherited from class&nbsp;pkg."
  68                 + "<a href=\"BaseClass.html\" title=\"class in pkg\">BaseClass</a>",
  69                 "Nested classes/interfaces inherited from interface&nbsp;pkg."
  70                 + "<a href=\"BaseInterface.html\" title=\"interface in pkg\">BaseInterface</a>");
  71 
  72         checkOutput("pkg/BaseClass.html", true,
  73                 // Test overriding/implementing methods with generic parameters.
  74                 "<dl>\n"
  75                 + "<dt><span class=\"overrideSpecifyLabel\">Specified by:</span></dt>\n"
  76                 + "<dd><code><a href=\"BaseInterface.html#getAnnotation(java.lang.Class)\">"
  77                 + "getAnnotation</a></code>&nbsp;in interface&nbsp;<code>"
  78                 + "<a href=\"BaseInterface.html\" title=\"interface in pkg\">"
  79                 + "BaseInterface</a></code></dd>\n"
  80                 + "</dl>");
  81 
  82         checkOutput("diamond/Z.html", true,
  83                 // Test diamond inheritance member summary (6256068)
  84                 "<code><a href=\"A.html#aMethod()\">aMethod</a></code>");
  85 
  86         checkOutput("inheritDist/C.html", true,
  87                 // Test that doc is inherited from closed parent (6270645)
  88                 "<div class=\"block\">m1-B</div>");
  89 
  90         checkOutput("pkg/SubClass.html", false,
  91                 "<a href=\"BaseClass.html#staticMethod()\">staticMethod</a></code>");
  92 
  93         checkOutput("pkg1/Implementer.html", true,
  94                 // ensure the method makes it
  95                 "<td class=\"colFirst\"><code>static java.time.Period</code></td>\n"
  96                 + "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\">"
  97                 + "<a href=\"#between(java.time.LocalDate,java.time.LocalDate)\">"
  98                 + "between</a></span>​(java.time.LocalDate&nbsp;startDateInclusive,\n"
  99                 + "java.time.LocalDate&nbsp;endDateExclusive)</code></th>");
 100 
 101         checkOutput("pkg1/Implementer.html", false,
 102                 "<h3>Methods inherited from interface&nbsp;pkg1.<a href=\"Interface.html\""
 103                 + " title=\"interface in pkg1\">Interface</a></h3>\n"
 104                 + "<code><a href=\"Interface.html#between(java.time.chrono.ChronoLocalDate"
 105                 + ",java.time.chrono.ChronoLocalDate)\">between</a></code>"
 106         );
 107     }
 108 }
< prev index next >