equal
deleted
inserted
replaced
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 8008949 |
26 * @bug 8008949 |
27 * @summary verify that doc-files get copied |
27 * @summary verify that doc-files get copied |
28 * @library ../lib/ |
28 * @library ../lib |
29 * @build JavadocTester |
29 * @build JavadocTester |
30 * @build TestDocFiles |
|
31 * @run main TestDocFiles |
30 * @run main TestDocFiles |
32 */ |
31 */ |
33 |
32 |
34 public class TestDocFiles extends JavadocTester { |
33 public class TestDocFiles extends JavadocTester { |
35 |
34 |
36 private static final String[][] TEST = { |
35 public static void main(String... args) throws Exception { |
37 { "pkg/doc-files/test.txt", "test file"}}; |
36 TestDocFiles tester = new TestDocFiles(); |
|
37 tester.runTests(); |
|
38 } |
38 |
39 |
39 private static final String[] ARGS = |
40 @Test |
40 new String[] { |
41 void test() { |
41 "-d", "tmp", "-sourcepath", SRC_DIR, "pkg"}; |
42 javadoc("-d", "out", |
|
43 "-sourcepath", testSrc, |
|
44 "pkg"); |
|
45 checkExit(Exit.OK); |
42 |
46 |
43 /** |
47 checkOutput("pkg/doc-files/test.txt", true, |
44 * The entry point of the test. |
48 "test file"); |
45 * @param args the array of command line arguments. |
|
46 */ |
|
47 public static void main(String[] args) { |
|
48 TestDocFiles tester = new TestDocFiles(); |
|
49 tester.run(ARGS, TEST, NO_TEST); |
|
50 tester.printSummary(); |
|
51 } |
49 } |
52 } |
50 } |