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><W extends java.lang.String,V extends "
58 + "java.util.List><br>java.lang.Object</code></td>",
59 "<code><T> java.lang.Object</code>");
60
61 checkOutput("pkg/package-summary.html", true,
62 "C</a><E extends <a href=\"Parent.html\" "
63 + "title=\"class in pkg\">Parent</a>>");
64
65 checkOutput("pkg/class-use/Foo4.html", true,
66 "<a href=\"../ClassUseTest3.html\" title=\"class in pkg\">"
67 + "ClassUseTest3</a><T extends <a href=\"../ParamTest2.html\" "
68 + "title=\"class in pkg\">ParamTest2</a><java.util.List<? extends "
69 + "<a href=\"../Foo4.html\" title=\"class in pkg\">Foo4</a>>>>");
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><W extends java.lang.String,\nV extends "
58 + "java.util.List><br>java.lang.Object</code></td>",
59 "<code><T> java.lang.Object</code>");
60
61 checkOutput("pkg/package-summary.html", true,
62 "C</a><E extends <a href=\"Parent.html\" "
63 + "title=\"class in pkg\">Parent</a>>");
64
65 checkOutput("pkg/class-use/Foo4.html", true,
66 "<a href=\"../ClassUseTest3.html\" title=\"class in pkg\">"
67 + "ClassUseTest3</a><T extends <a href=\"../ParamTest2.html\" "
68 + "title=\"class in pkg\">ParamTest2</a><java.util.List<? extends "
69 + "<a href=\"../Foo4.html\" title=\"class in pkg\">Foo4</a>>>>");
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
|