30 * @modules jdk.javadoc
31 * @build JavadocTester
32 * @run main TestSeeTag
33 */
34
35 public class TestSeeTag extends JavadocTester {
36
37 public static void main(String... args) throws Exception {
38 TestSeeTag tester = new TestSeeTag();
39 tester.runTests();
40 }
41
42 @Test
43 void test() {
44 javadoc("-d", "out",
45 "-sourcepath", testSrc,
46 "pkg");
47 checkExit(Exit.OK);
48
49 checkOutput("pkg/Test.html", true,
50 "<code>List</code>");
51
52 checkOutput("pkg/Test.html", false,
53 "<code>List</code>");
54 }
55 }
|
30 * @modules jdk.javadoc
31 * @build JavadocTester
32 * @run main TestSeeTag
33 */
34
35 public class TestSeeTag extends JavadocTester {
36
37 public static void main(String... args) throws Exception {
38 TestSeeTag tester = new TestSeeTag();
39 tester.runTests();
40 }
41
42 @Test
43 void test() {
44 javadoc("-d", "out",
45 "-sourcepath", testSrc,
46 "pkg");
47 checkExit(Exit.OK);
48
49 checkOutput("pkg/Test.html", true,
50 "<code>List</code>",
51 "<dl>\n"
52 + "<dt><span class=\"seeLabel\">See Also:</span></dt>\n"
53 + "<dd><a href=\"../pkg/Test.InnerOne.html#foo--\"><code>Test.InnerOne.foo()</code></a>, \n"
54 + "<a href=\"../pkg/Test.InnerOne.html#bar-java.lang.Object-\"><code>Test.InnerOne.bar(Object)</code></a>, \n"
55 + "<a href=\"http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html#see\">Javadoc</a>, \n"
56 + "<a href=\"../pkg/Test.InnerOne.html#baz-float-\"><code>something</code></a></dd>\n"
57 + "</dl>");
58
59 checkOutput("pkg/Test.html", false,
60 "<code>List</code>");
61
62 checkOutput("pkg/Test2.html", true,
63 "<code>Serializable</code>");
64
65 checkOutput("pkg/Test2.html", false,
66 ">Serialized Form<");
67 }
68 }
|