test/jdk/javadoc/doclet/testLinkOption/TestLinkOption.java

Print this page

        

@@ -71,10 +71,33 @@
                 "(int p1,\n"
                 + "      int p2,\n"
                 + "      <a href=\"" + url + "java/lang/Object.html?is-external=true\" title=\"class or interface in java.lang\">"
                 + "Object</a>&nbsp;p3)");
 
+        checkOutput("pkg/B.html", true,
+                "<div class=\"block\">A method with html tag the method "
+                + "<a href=\"http://java.sun.com/j2se/1.4/docs/api/java/lang/ClassLoader.html?is-external=true#getSystemClassLoader--\""
+                + " title=\"class or interface in java.lang\"><code><tt>getSystemClassLoader()</tt>"
+                + "</code></a> as the parent class loader.</div>",
+                "<div class=\"block\">is equivalent to invoking <code>"
+                + "<a href=\"../pkg/B.html#createTempFile-java.lang.String-java.lang.String-java.io.File-\">"
+                + "<code>createTempFile(prefix,&nbsp;suffix,&nbsp;null)</code></a></code>.</div>",
+                "<a href=\"" + url + "java/lang/String.html?is-external=true\" "
+                + "title=\"class or interface in java.lang\">Link-Plain to String Class</a>",
+                "<code><tt>getSystemClassLoader()</tt></code>",
+                "<code>createTempFile(prefix,&nbsp;suffix,&nbsp;null)</code>",
+                "<dd><a href=\"http://www.ietf.org/rfc/rfc2279.txt\"><i>RFC&nbsp;2279: UTF-8, a\n" +
+                " transformation format of ISO 10646</i></a>, <br><a " +
+                "href=\"http://www.ietf.org/rfc/rfc2373.txt\"><i>RFC&nbsp;2373: IPv6 Addressing\n" +
+                " Architecture</i></a>, <br><a href=\"http://www.ietf.org/rfc/rfc2396.txt\">" +
+                "<i>RFC&nbsp;2396: Uniform\n" +
+                " Resource Identifiers (URI): Generic Syntax</i></a>, " +
+                "<br><a href=\"http://www.ietf.org/rfc/rfc2732.txt\"><i>RFC&nbsp;2732: Format for\n" +
+                " Literal IPv6 Addresses in URLs</i></a>, <br><a href=\"URISyntaxException.html\">" +
+                "URISyntaxException</a></dd>\n" +
+                "</dl>");
+
         checkOutput("java/lang/StringBuilderChild.html", true,
                 "<pre>public abstract class <span class=\"typeNameLabel\">StringBuilderChild</span>\n"
                 + "extends <a href=\"" + url + "java/lang/Object.html?is-external=true\" "
                 + "title=\"class or interface in java.lang\">Object</a></pre>"
         );

@@ -101,11 +124,11 @@
         javadoc(createArguments(out4, out1, false)); // without trailing slash
         checkExit(Exit.OK);
         // Note: the following test is very weak, and will fail if ever the test
         // of the message is changed. We should have a separate test to verify
         // this is the text that is given when there is a problem with a URL
-        checkOutput(Output.WARNING, false,
+        checkOutput(Output.OUT, false,
                 "warning - Error fetching URL");
     }
 
     /*
      * Create the documentation using the -link option, vary the behavior with