< prev index next >

test/langtools/jdk/javadoc/doclet/testUseOption/TestUseOption.java

Print this page




 106         );
 107         checkOutput("pkg1/class-use/UsedInterface.html", true,
 108             "\"../package-summary.html\">pkg1</a> that return " +
 109             "<a href=\"../UsedInterface.html\" title=\"interface in pkg1\""
 110         );
 111         checkOutput("pkg1/class-use/UsedInterface.html", true,
 112             "<a href=\"../C10.html#addAll(pkg1.UsedInterface...)\">addAll</a>"
 113         );
 114         checkOutput("pkg1/class-use/UsedInterface.html", true,
 115             "<a href=\"../C10.html#create(pkg1.UsedInterfaceA,pkg1." +
 116             "UsedInterface,java.lang.String)\">"
 117         );
 118         checkOutput("pkg1/class-use/UsedInterface.html", true,
 119             "<a href=\"../C10.html#withTypeParametersOfType(java.lang.Class)\">" +
 120             "withTypeParametersOfType</a>"
 121         );
 122         checkOutput("pkg1/class-use/UsedInterface.html", true,
 123             "Subinterfaces of <a href=\"../UsedInterface.html\" title=\"interface in pkg1\">"
 124             + "UsedInterface</a> in <a href=\"../package-summary.html\">pkg1",
 125             "<td class=\"colFirst\"><code>interface&nbsp;</code></td>\n<th class=\"colSecond\" scope=\"row\">"
 126             + "<code><span class=\"memberNameLink\"><a href=\"../SubInterface.html\" "
 127             + "title=\"interface in pkg1\">SubInterface</a>&lt;T&gt;</span></code></th>"
 128         );
 129         checkOutput("pkg1/class-use/UsedThrowable.html", true,
 130             "Methods in <a href=\"../package-summary.html\">pkg1</a> that throw "
 131             + "<a href=\"../UsedThrowable.html\" title=\"class in pkg1\">UsedThrowable</a>",
 132             "<td class=\"colFirst\"><code>void</code></td>\n<th class=\"colSecond\" scope=\"row\"><span class="
 133             + "\"typeNameLabel\">C1.</span><code><span class=\"memberNameLink\">"
 134             + "<a href=\"../C1.html#methodInC1ThrowsThrowable()\">methodInC1ThrowsThrowable"
 135             + "</a></span>()</code></th>"
 136         );
 137     }
 138 
 139     @Test
 140     public void test2() {
 141         javadoc("-d", "out-2",
 142                 "-sourcepath", testSrc,
 143                 "-use",
 144                 testSrc("C.java"), testSrc("UsedInC.java"), "pkg3");
 145         checkExit(Exit.OK);
 146 
 147         checkOutput("class-use/UsedInC.html", true,
 148                 "Uses of <a href=\"../UsedInC.html\" title=\"class in &lt;Unnamed&gt;\">"
 149                 + "UsedInC</a> in <a href=\"../package-summary.html\">&lt;Unnamed&gt;</a>"
 150         );
 151         checkOutput("class-use/UsedInC.html", true,
 152                 "<li class=\"blockList\">\n"
 153                 + "<section class=\"detail\"><a id=\"unnamed.package\">"
 154         );
 155         checkOutput("package-use.html", true,
 156                 "<th class=\"colFirst\" scope=\"row\">"
 157                 + "<a href=\"class-use/UsedInC.html#unnamed.package\">UsedInC</a></th>",
 158                 "<th class=\"colFirst\" scope=\"row\"><a href=\"#unnamed.package\">&lt;Unnamed&gt;</a></th>\n"
 159                 + "<td class=\"colLast\">&nbsp;</td>"
 160         );
 161     }
 162 
 163     @Test
 164     public void test3() {
 165         javadoc("-d", "out-3",
 166                 "-sourcepath", testSrc,
 167                 "-use",
 168                 "-package", "unique");
 169         checkExit(Exit.OK);
 170         checkUnique("unique/class-use/UseMe.html",
 171                 "<a href=\"../C1.html#umethod1(unique.UseMe,unique.UseMe%5B%5D)\">",
 172                 "<a href=\"../C1.html#umethod2(unique.UseMe,unique.UseMe)\">",
 173                 "<a href=\"../C1.html#umethod3(unique.UseMe,unique.UseMe)\">",


 106         );
 107         checkOutput("pkg1/class-use/UsedInterface.html", true,
 108             "\"../package-summary.html\">pkg1</a> that return " +
 109             "<a href=\"../UsedInterface.html\" title=\"interface in pkg1\""
 110         );
 111         checkOutput("pkg1/class-use/UsedInterface.html", true,
 112             "<a href=\"../C10.html#addAll(pkg1.UsedInterface...)\">addAll</a>"
 113         );
 114         checkOutput("pkg1/class-use/UsedInterface.html", true,
 115             "<a href=\"../C10.html#create(pkg1.UsedInterfaceA,pkg1." +
 116             "UsedInterface,java.lang.String)\">"
 117         );
 118         checkOutput("pkg1/class-use/UsedInterface.html", true,
 119             "<a href=\"../C10.html#withTypeParametersOfType(java.lang.Class)\">" +
 120             "withTypeParametersOfType</a>"
 121         );
 122         checkOutput("pkg1/class-use/UsedInterface.html", true,
 123             "Subinterfaces of <a href=\"../UsedInterface.html\" title=\"interface in pkg1\">"
 124             + "UsedInterface</a> in <a href=\"../package-summary.html\">pkg1",
 125             "<td class=\"colFirst\"><code>interface&nbsp;</code></td>\n<th class=\"colSecond\" scope=\"row\">"
 126             + "<code><span class=\"memberNameLink\"><a href=\"../SubInterface.html\" "
 127             + "title=\"interface in pkg1\">SubInterface</a>&lt;T&gt;</span></code></th>"
 128         );
 129         checkOutput("pkg1/class-use/UsedThrowable.html", true,
 130             "Methods in <a href=\"../package-summary.html\">pkg1</a> that throw "
 131             + "<a href=\"../UsedThrowable.html\" title=\"class in pkg1\">UsedThrowable</a>",
 132             "<td class=\"colFirst\"><code>void</code></td>\n<th class=\"colSecond\" scope=\"row\"><span class="
 133             + "\"typeNameLabel\">C1.</span><code><span class=\"memberNameLink\">"
 134             + "<a href=\"../C1.html#methodInC1ThrowsThrowable()\">methodInC1ThrowsThrowable"
 135             + "</a></span>()</code></th>"
 136         );
 137     }
 138 
 139     @Test
 140     public void test2() {
 141         javadoc("-d", "out-2",
 142                 "-sourcepath", testSrc,
 143                 "-use",
 144                 testSrc("C.java"), testSrc("UsedInC.java"), "pkg3");
 145         checkExit(Exit.OK);
 146 
 147         checkOutput("class-use/UsedInC.html", true,
 148                 "Uses of <a href=\"../UsedInC.html\" title=\"class in &lt;Unnamed&gt;\">"
 149                 + "UsedInC</a> in <a href=\"../package-summary.html\">&lt;Unnamed&gt;</a>"
 150         );
 151         checkOutput("class-use/UsedInC.html", true,
 152                 "<li class=\"blockList\">\n"
 153                 + "<section class=\"detail\" id=\"unnamed.package\">\n"
 154         );
 155         checkOutput("package-use.html", true,
 156                 "<th class=\"colFirst\" scope=\"row\">"
 157                 + "<a href=\"class-use/UsedInC.html#unnamed.package\">UsedInC</a></th>",
 158                 "<th class=\"colFirst\" scope=\"row\"><a href=\"#unnamed.package\">&lt;Unnamed&gt;</a></th>\n"
 159                 + "<td class=\"colLast\">&nbsp;</td>"
 160         );
 161     }
 162 
 163     @Test
 164     public void test3() {
 165         javadoc("-d", "out-3",
 166                 "-sourcepath", testSrc,
 167                 "-use",
 168                 "-package", "unique");
 169         checkExit(Exit.OK);
 170         checkUnique("unique/class-use/UseMe.html",
 171                 "<a href=\"../C1.html#umethod1(unique.UseMe,unique.UseMe%5B%5D)\">",
 172                 "<a href=\"../C1.html#umethod2(unique.UseMe,unique.UseMe)\">",
 173                 "<a href=\"../C1.html#umethod3(unique.UseMe,unique.UseMe)\">",
< prev index next >