equal
deleted
inserted
replaced
34 * @run main TestSummaryHeading |
34 * @run main TestSummaryHeading |
35 */ |
35 */ |
36 |
36 |
37 public class TestSummaryHeading extends JavadocTester { |
37 public class TestSummaryHeading extends JavadocTester { |
38 |
38 |
39 //Test information. |
|
40 private static final String BUG_ID = "4904036"; |
|
41 |
|
42 //Javadoc arguments. |
39 //Javadoc arguments. |
43 private static final String[] ARGS = new String[] { |
40 private static final String[] ARGS = new String[] { |
44 "-d", BUG_ID, "-sourcepath", SRC_DIR, SRC_DIR + "/C.java" |
41 "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, SRC_DIR + "/C.java" |
45 }; |
42 }; |
46 |
43 |
47 //Input for string search tests. |
44 //Input for string search tests. |
48 private static final String[][] TEST = { |
45 private static final String[][] TEST = { |
49 {BUG_ID + "/C.html", "<h3>Method Summary</h3>"} |
46 { "C.html", "<h3>Method Summary</h3>"} |
50 }; |
47 }; |
51 |
48 |
52 /** |
49 /** |
53 * The entry point of the test. |
50 * The entry point of the test. |
54 * @param args the array of command line arguments. |
51 * @param args the array of command line arguments. |
56 public static void main(String[] args) { |
53 public static void main(String[] args) { |
57 TestSummaryHeading tester = new TestSummaryHeading(); |
54 TestSummaryHeading tester = new TestSummaryHeading(); |
58 tester.run(ARGS, TEST, NO_TEST); |
55 tester.run(ARGS, TEST, NO_TEST); |
59 tester.printSummary(); |
56 tester.printSummary(); |
60 } |
57 } |
61 |
|
62 /** |
|
63 * {@inheritDoc} |
|
64 */ |
|
65 public String getBugId() { |
|
66 return BUG_ID; |
|
67 } |
|
68 |
|
69 /** |
|
70 * {@inheritDoc} |
|
71 */ |
|
72 public String getBugName() { |
|
73 return getClass().getName(); |
|
74 } |
|
75 } |
58 } |