24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 8170825 8196027 |
26 * @bug 8170825 8196027 |
27 * @summary Perform tests on index files generated by javadoc. |
27 * @summary Perform tests on index files generated by javadoc. |
28 * @author bpatel |
28 * @author bpatel |
29 * @library ../lib |
29 * @library ../../lib |
30 * @modules jdk.javadoc/jdk.javadoc.internal.tool |
30 * @modules jdk.javadoc/jdk.javadoc.internal.tool |
31 * @build JavadocTester |
31 * @build javadoc.tester.* |
32 * @run main TestIndexFiles |
32 * @run main TestIndexFiles |
33 */ |
33 */ |
|
34 |
|
35 import javadoc.tester.JavadocTester; |
34 |
36 |
35 public class TestIndexFiles extends JavadocTester { |
37 public class TestIndexFiles extends JavadocTester { |
36 |
38 |
37 public static void main(String... args) throws Exception { |
39 public static void main(String... args) throws Exception { |
38 TestIndexFiles tester = new TestIndexFiles(); |
40 TestIndexFiles tester = new TestIndexFiles(); |
39 tester.runTests(); |
41 tester.runTests(); |
40 } |
42 } |
41 |
43 |
42 @Test |
44 @Test |
43 void testIndexFiles() { |
45 public void testIndexFiles() { |
44 javadoc("-d", "out", "-splitindex", "-Xdoclint:none", "-sourcepath", testSrc, |
46 javadoc("-d", "out", "-splitindex", "-Xdoclint:none", "-sourcepath", testSrc, |
45 "-use", "pkg"); |
47 "-use", "pkg"); |
46 checkExit(Exit.OK); |
48 checkExit(Exit.OK); |
47 checkIndexFiles(false); |
49 checkIndexFiles(false); |
48 } |
50 } |