< prev index next >

test/langtools/jdk/javadoc/doclet/testTypeParams/TestTypeParameters.java

Print this page




  37  */
  38 
  39 import javadoc.tester.JavadocTester;
  40 
  41 public class TestTypeParameters extends JavadocTester {
  42 
  43     public static void main(String... args) throws Exception {
  44         TestTypeParameters tester = new TestTypeParameters();
  45         tester.runTests();
  46     }
  47 
  48     @Test
  49     public void test1() {
  50         javadoc("-d", "out-1",
  51                 "-use",
  52                 "-sourcepath", testSrc,
  53                 "pkg");
  54         checkExit(Exit.OK);
  55 
  56         checkOutput("pkg/C.html", true,
  57                 "<td class=\"colFirst\"><code>&lt;W extends java.lang.String,​V extends "
  58                 + "java.util.List&gt;<br>java.lang.Object</code></td>",
  59                 "<code>&lt;T&gt;&nbsp;java.lang.Object</code>");
  60 
  61         checkOutput("pkg/package-summary.html", true,
  62                 "C</a>&lt;E extends <a href=\"Parent.html\" "
  63                 + "title=\"class in pkg\">Parent</a>&gt;");
  64 
  65         checkOutput("pkg/class-use/Foo4.html", true,
  66                 "<a href=\"../ClassUseTest3.html\" title=\"class in pkg\">"
  67                 + "ClassUseTest3</a>&lt;T extends <a href=\"../ParamTest2.html\" "
  68                 + "title=\"class in pkg\">ParamTest2</a>&lt;java.util.List&lt;? extends "
  69                 + "<a href=\"../Foo4.html\" title=\"class in pkg\">Foo4</a>&gt;&gt;&gt;");
  70 
  71         // Nested type parameters
  72         checkOutput("pkg/C.html", true,
  73                 "<a id=\"formatDetails(java.util.Collection,java.util.Collection)\">\n"
  74                 + "<!--   -->\n"
  75                 + "</a>");
  76     }
  77 


  37  */
  38 
  39 import javadoc.tester.JavadocTester;
  40 
  41 public class TestTypeParameters extends JavadocTester {
  42 
  43     public static void main(String... args) throws Exception {
  44         TestTypeParameters tester = new TestTypeParameters();
  45         tester.runTests();
  46     }
  47 
  48     @Test
  49     public void test1() {
  50         javadoc("-d", "out-1",
  51                 "-use",
  52                 "-sourcepath", testSrc,
  53                 "pkg");
  54         checkExit(Exit.OK);
  55 
  56         checkOutput("pkg/C.html", true,
  57                 "<td class=\"colFirst\"><code>&lt;W extends java.lang.String,​\nV extends "
  58                 + "java.util.List&gt;<br>java.lang.Object</code></td>",
  59                 "<code>&lt;T&gt;&nbsp;java.lang.Object</code>");
  60 
  61         checkOutput("pkg/package-summary.html", true,
  62                 "C</a>&lt;E extends <a href=\"Parent.html\" "
  63                 + "title=\"class in pkg\">Parent</a>&gt;");
  64 
  65         checkOutput("pkg/class-use/Foo4.html", true,
  66                 "<a href=\"../ClassUseTest3.html\" title=\"class in pkg\">"
  67                 + "ClassUseTest3</a>&lt;T extends <a href=\"../ParamTest2.html\" "
  68                 + "title=\"class in pkg\">ParamTest2</a>&lt;java.util.List&lt;? extends "
  69                 + "<a href=\"../Foo4.html\" title=\"class in pkg\">Foo4</a>&gt;&gt;&gt;");
  70 
  71         // Nested type parameters
  72         checkOutput("pkg/C.html", true,
  73                 "<a id=\"formatDetails(java.util.Collection,java.util.Collection)\">\n"
  74                 + "<!--   -->\n"
  75                 + "</a>");
  76     }
  77 
< prev index next >