100 // PACKAGE OVERVIEW |
100 // PACKAGE OVERVIEW |
101 checkOutput("overview-summary.html", true, |
101 checkOutput("overview-summary.html", true, |
102 "<a href=\"./pkg/relative-package-link.html\">relative package link</a>"); |
102 "<a href=\"./pkg/relative-package-link.html\">relative package link</a>"); |
103 } |
103 } |
104 |
104 |
105 @Test |
|
106 public void test_html4() { |
|
107 javadoc("-d", "out-html4", |
|
108 "-html4", |
|
109 "-use", |
|
110 "-sourcepath", testSrc, |
|
111 "pkg", "pkg2"); |
|
112 checkExit(Exit.OK); |
|
113 } |
|
114 |
|
115 @Override |
|
116 public void checkLinks() { |
|
117 // since the test uses explicit links to non-existent files, |
|
118 // we create those files to avoid false positive errors from checkLinks |
|
119 touch("pkg/relative-class-link.html"); |
|
120 touch("pkg/relative-field-link.html"); |
|
121 touch("pkg/relative-method-link.html"); |
|
122 touch("pkg/relative-package-link.html"); |
|
123 touch("pkg/relative-multi-line-link.html"); |
|
124 super.checkLinks(); |
|
125 } |
|
126 |
|
127 private void touch(String file) { |
105 private void touch(String file) { |
128 File f = new File(outputDir, file); |
106 File f = new File(outputDir, file); |
129 out.println("touch " + f); |
107 out.println("touch " + f); |
130 try (FileOutputStream fos = new FileOutputStream(f)) { |
108 try (FileOutputStream fos = new FileOutputStream(f)) { |
131 } catch (IOException e) { |
109 } catch (IOException e) { |