25 * @test |
25 * @test |
26 * @bug 4904038 |
26 * @bug 4904038 |
27 * @summary The field detail comment should not show up in the output if there |
27 * @summary The field detail comment should not show up in the output if there |
28 * are no fields to document. |
28 * are no fields to document. |
29 * @author jamieh |
29 * @author jamieh |
30 * @library ../lib/ |
30 * @library ../lib |
31 * @build JavadocTester |
31 * @build JavadocTester |
32 * @build TestHtmlComments |
|
33 * @run main TestHtmlComments |
32 * @run main TestHtmlComments |
34 */ |
33 */ |
35 |
34 |
36 public class TestHtmlComments extends JavadocTester { |
35 public class TestHtmlComments extends JavadocTester { |
37 |
36 |
38 //Javadoc arguments. |
37 public static void main(String... args) throws Exception { |
39 private static final String[] ARGS = new String[] { |
38 TestHtmlComments tester = new TestHtmlComments(); |
40 "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, SRC_DIR + "/C.java" |
39 tester.runTests(); |
41 }; |
40 } |
42 |
41 |
43 //Input for string search tests. |
42 @Test |
44 private static final String[][] NEGATED_TEST = { |
43 void run() { |
45 { "C.html", |
44 javadoc("-d", "out", |
46 "<!-- ============ FIELD DETAIL =========== -->"} |
45 "-sourcepath", testSrc, |
47 }; |
46 testSrc("C.java")); |
|
47 checkExit(Exit.OK); |
48 |
48 |
49 /** |
49 checkOutput("C.html", false, |
50 * The entry point of the test. |
50 "<!-- ============ FIELD DETAIL =========== -->"); |
51 * @param args the array of command line arguments. |
|
52 */ |
|
53 public static void main(String[] args) { |
|
54 TestHtmlComments tester = new TestHtmlComments(); |
|
55 tester.run(ARGS, NO_TEST, NEGATED_TEST); |
|
56 tester.printSummary(); |
|
57 } |
51 } |
58 } |
52 } |