langtools/test/com/sun/javadoc/testAnnotationOptional/TestAnnotationOptional.java
equal
deleted
inserted
replaced
33 * @run main TestAnnotationOptional |
33 * @run main TestAnnotationOptional |
34 */ |
34 */ |
35 |
35 |
36 public class TestAnnotationOptional extends JavadocTester { |
36 public class TestAnnotationOptional extends JavadocTester { |
37 |
37 |
38 //Test information. |
|
39 private static final String BUG_ID = "NO_BUG_ID_YET"; |
|
40 |
|
41 //Javadoc arguments. |
38 //Javadoc arguments. |
42 private static final String[] ARGS = new String[] { |
39 private static final String[] ARGS = new String[] { |
43 "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg" |
40 "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "pkg" |
44 }; |
41 }; |
45 |
42 |
46 //Input for string search tests. |
43 //Input for string search tests. |
47 private static final String[][] TEST = { |
44 private static final String[][] TEST = { |
48 {BUG_ID + "/pkg/AnnotationOptional.html", |
45 { "pkg/AnnotationOptional.html", |
49 "<a name=\"annotation.type.element.detail\">" |
46 "<a name=\"annotation.type.element.detail\">" |
50 } |
47 } |
51 }; |
48 }; |
52 /** |
49 /** |
53 * The entry point of the test. |
50 * The entry point of the test. |
56 public static void main(String[] args) { |
53 public static void main(String[] args) { |
57 TestAnnotationOptional tester = new TestAnnotationOptional(); |
54 TestAnnotationOptional tester = new TestAnnotationOptional(); |
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 } |