< prev index next >

test/langtools/jdk/javadoc/doclet/testClassTree/TestClassTree.java

Print this page
rev 52865 : [mq]: 8210031


  35  * @run main TestClassTree
  36  */
  37 
  38 public class TestClassTree extends JavadocTester {
  39 
  40     public static void main(String... args) throws Exception {
  41         TestClassTree tester = new TestClassTree();
  42         tester.runTests();
  43     }
  44 
  45     @Test
  46     void test() {
  47         javadoc("-d", "out",
  48                 "-sourcepath", testSrc,
  49                 "pkg");
  50         checkExit(Exit.OK);
  51 
  52         checkOutput("pkg/package-tree.html", true,
  53                 "<ul>\n"
  54                 + "<li class=\"circle\">pkg.<a href=\"ParentClass.html\" "
  55                 + "title=\"class in pkg\"><span class=\"typeNameLink\">ParentClass</span></a>",
  56                 "<h2 title=\"Annotation Type Hierarchy\">Annotation Type Hierarchy</h2>\n"
  57                 + "<ul>\n"
  58                 + "<li class=\"circle\">pkg.<a href=\"AnnotationType.html\" "
  59                 + "title=\"annotation in pkg\"><span class=\"typeNameLink\">AnnotationType</span></a> "
  60                 + "(implements java.lang.annotation.Annotation)</li>\n"
  61                 + "</ul>",
  62                 "<h2 title=\"Enum Hierarchy\">Enum Hierarchy</h2>\n"
  63                 + "<ul>\n"
  64                 + "<li class=\"circle\">java.lang.Object\n"
  65                 + "<ul>\n"
  66                 + "<li class=\"circle\">java.lang.Enum&lt;E&gt; (implements java.lang."
  67                 + "Comparable&lt;T&gt;, java.io.Serializable)\n"
  68                 + "<ul>\n"
  69                 + "<li class=\"circle\">pkg.<a href=\"Coin.html\" "
  70                 + "title=\"enum in pkg\"><span class=\"typeNameLink\">Coin</span></a></li>\n"
  71                 + "</ul>\n"
  72                 + "</li>\n"
  73                 + "</ul>\n"
  74                 + "</li>\n"
  75                 + "</ul>");
  76 
  77         checkOutput("pkg/package-tree.html", false,
  78                 "<li class=\"circle\">class pkg.<a href=\".ParentClass.html\" "
  79                 + "title=\"class in pkg\"><span class=\"typeNameLink\">ParentClass</span></a></li>");
  80     }
  81 }


  35  * @run main TestClassTree
  36  */
  37 
  38 public class TestClassTree extends JavadocTester {
  39 
  40     public static void main(String... args) throws Exception {
  41         TestClassTree tester = new TestClassTree();
  42         tester.runTests();
  43     }
  44 
  45     @Test
  46     void test() {
  47         javadoc("-d", "out",
  48                 "-sourcepath", testSrc,
  49                 "pkg");
  50         checkExit(Exit.OK);
  51 
  52         checkOutput("pkg/package-tree.html", true,
  53                 "<ul>\n"
  54                 + "<li class=\"circle\">pkg.<a href=\"ParentClass.html\" "
  55                 + "title=\"class in pkg\"><span class=\"typeNameLink\">ParentClass</span></a>",
  56                 "<h2 title=\"Annotation Type Hierarchy\">Annotation Type Hierarchy</h2>\n"
  57                 + "<ul>\n"
  58                 + "<li class=\"circle\">pkg.<a href=\"AnnotationType.html\" "
  59                 + "title=\"annotation in pkg\"><span class=\"typeNameLink\">AnnotationType</span></a> "
  60                 + "(implements java.lang.annotation.Annotation)</li>\n"
  61                 + "</ul>",
  62                 "<h2 title=\"Enum Hierarchy\">Enum Hierarchy</h2>\n"
  63                 + "<ul>\n"
  64                 + "<li class=\"circle\">java.lang.Object\n"
  65                 + "<ul>\n"
  66                 + "<li class=\"circle\">java.lang.Enum&lt;E&gt; (implements java.lang.Comparable&lt;T&gt;, java.lang.constant.Constable, java.io.Serializable)\n"

  67                 + "<ul>\n"
  68                 + "<li class=\"circle\">pkg.<a href=\"Coin.html\" "
  69                 + "title=\"enum in pkg\"><span class=\"typeNameLink\">Coin</span></a></li>\n"
  70                 + "</ul>\n"
  71                 + "</li>\n"
  72                 + "</ul>\n"
  73                 + "</li>\n"
  74                 + "</ul>");
  75 
  76         checkOutput("pkg/package-tree.html", false,
  77                 "<li class=\"circle\">class pkg.<a href=\".ParentClass.html\" "
  78                 + "title=\"class in pkg\"><span class=\"typeNameLink\">ParentClass</span></a></li>");
  79     }
  80 }
< prev index next >