34 * @run main TestDocRootInlineTag |
34 * @run main TestDocRootInlineTag |
35 */ |
35 */ |
36 |
36 |
37 public class TestDocRootInlineTag extends JavadocTester { |
37 public class TestDocRootInlineTag extends JavadocTester { |
38 |
38 |
39 private static final String BUG_ID = "4369014-4851991"; |
|
40 private static final String[][] TEST = { |
39 private static final String[][] TEST = { |
41 {BUG_ID + "/TestDocRootTag.html", |
40 { "TestDocRootTag.html", |
42 "<a href=\"http://www.java.sun.com/j2se/1.4/docs/api/java/io/File.html?is-external=true\" " + |
41 "<a href=\"http://www.java.sun.com/j2se/1.4/docs/api/java/io/File.html?is-external=true\" " + |
43 "title=\"class or interface in java.io\"><code>File</code></a>"}, |
42 "title=\"class or interface in java.io\"><code>File</code></a>"}, |
44 {BUG_ID + "/TestDocRootTag.html", |
43 { "TestDocRootTag.html", |
45 "<a href=\"./glossary.html\">glossary</a>"}, |
44 "<a href=\"./glossary.html\">glossary</a>"}, |
46 {BUG_ID + "/TestDocRootTag.html", |
45 { "TestDocRootTag.html", |
47 "<a href=\"http://www.java.sun.com/j2se/1.4/docs/api/java/io/File.html?is-external=true\" " + |
46 "<a href=\"http://www.java.sun.com/j2se/1.4/docs/api/java/io/File.html?is-external=true\" " + |
48 "title=\"class or interface in java.io\"><code>Second File Link</code></a>"}, |
47 "title=\"class or interface in java.io\"><code>Second File Link</code></a>"}, |
49 {BUG_ID + "/TestDocRootTag.html", "The value of @docRoot is \"./\""}, |
48 { "TestDocRootTag.html", "The value of @docRoot is \"./\""}, |
50 {BUG_ID + "/index-all.html", "My package page is " + |
49 { "index-all.html", "My package page is " + |
51 "<a href=\"./pkg/package-summary.html\">here</a>"} |
50 "<a href=\"./pkg/package-summary.html\">here</a>"} |
52 }; |
51 }; |
53 private static final String[] ARGS = |
52 private static final String[] ARGS = |
54 new String[] { |
53 new String[] { |
55 "-bottom", "The value of @docRoot is \"{@docRoot}\"", |
54 "-bottom", "The value of @docRoot is \"{@docRoot}\"", |
56 "-d", BUG_ID, "-sourcepath", SRC_DIR, |
55 "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, |
57 "-linkoffline", "http://www.java.sun.com/j2se/1.4/docs/api", |
56 "-linkoffline", "http://www.java.sun.com/j2se/1.4/docs/api", |
58 SRC_DIR, SRC_DIR + "/TestDocRootTag.java", "pkg" |
57 SRC_DIR, SRC_DIR + "/TestDocRootTag.java", "pkg" |
59 }; |
58 }; |
60 |
59 |
61 /** |
60 /** |
65 public static void main(String[] args) { |
64 public static void main(String[] args) { |
66 TestDocRootInlineTag tester = new TestDocRootInlineTag(); |
65 TestDocRootInlineTag tester = new TestDocRootInlineTag(); |
67 tester.run(ARGS, TEST, NO_TEST); |
66 tester.run(ARGS, TEST, NO_TEST); |
68 tester.printSummary(); |
67 tester.printSummary(); |
69 } |
68 } |
70 |
|
71 /** |
|
72 * {@inheritDoc} |
|
73 */ |
|
74 public String getBugId() { |
|
75 return BUG_ID; |
|
76 } |
|
77 |
|
78 /** |
|
79 * {@inheritDoc} |
|
80 */ |
|
81 public String getBugName() { |
|
82 return getClass().getName(); |
|
83 } |
|
84 } |
69 } |