32 * @run main AccessSummary |
32 * @run main AccessSummary |
33 */ |
33 */ |
34 |
34 |
35 public class AccessSummary extends JavadocTester { |
35 public class AccessSummary extends JavadocTester { |
36 |
36 |
37 private static final String BUG_ID = "4637604-4775148"; |
|
38 private static final String OUTPUT_DIR1 = "docs1-" + BUG_ID + "/"; |
|
39 |
|
40 /** |
37 /** |
41 * Assign value for [ fileToSearch, stringToFind ] |
38 * Assign value for [ fileToSearch, stringToFind ] |
42 */ |
39 */ |
43 private static final String[][] TESTARRAY1 = { |
40 private static final String[][] TESTARRAY1 = { |
44 |
41 |
45 // Test that the summary attribute appears |
42 // Test that the summary attribute appears |
46 { OUTPUT_DIR1 + "overview-summary.html", |
43 { "overview-summary.html", |
47 "summary=\"Packages table, listing packages, and an explanation\"" }, |
44 "summary=\"Packages table, listing packages, and an explanation\"" }, |
48 |
45 |
49 // Test that the summary attribute appears |
46 // Test that the summary attribute appears |
50 { OUTPUT_DIR1 + "p1/C1.html", |
47 { "p1/C1.html", |
51 "summary=\"Constructor Summary table, listing constructors, and an explanation\"" }, |
48 "summary=\"Constructor Summary table, listing constructors, and an explanation\"" }, |
52 |
49 |
53 // Test that the summary attribute appears |
50 // Test that the summary attribute appears |
54 { OUTPUT_DIR1 + "constant-values.html", |
51 { "constant-values.html", |
55 "summary=\"Constant Field Values table, listing constant fields, and values\"" } |
52 "summary=\"Constant Field Values table, listing constant fields, and values\"" } |
56 }; |
53 }; |
57 |
54 |
58 // First test with -header only |
55 // First test with -header only |
59 private static final String[] JAVADOC_ARGS = new String[] { |
56 private static final String[] JAVADOC_ARGS = new String[] { |
60 "-d", OUTPUT_DIR1, |
57 "-d", OUTPUT_DIR, |
61 "-sourcepath", SRC_DIR, |
58 "-sourcepath", SRC_DIR, |
62 "p1", "p2"}; |
59 "p1", "p2"}; |
63 |
60 |
64 /** |
61 /** |
65 * The entry point of the test. |
62 * The entry point of the test. |
68 public static void main(String[] args) { |
65 public static void main(String[] args) { |
69 JavadocTester tester = new AccessSummary(); |
66 JavadocTester tester = new AccessSummary(); |
70 tester.run(JAVADOC_ARGS, TESTARRAY1, new String[][] {}); |
67 tester.run(JAVADOC_ARGS, TESTARRAY1, new String[][] {}); |
71 tester.printSummary(); // Necessary for string search |
68 tester.printSummary(); // Necessary for string search |
72 } |
69 } |
73 |
|
74 /** |
|
75 * {@inheritDoc} |
|
76 */ |
|
77 public String getBugId() { |
|
78 return BUG_ID; |
|
79 } |
|
80 |
|
81 /** |
|
82 * {@inheritDoc} |
|
83 */ |
|
84 public String getBugName() { |
|
85 return getClass().getName(); |
|
86 } |
|
87 } |
70 } |