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