equal
deleted
inserted
replaced
25 * @test |
25 * @test |
26 * @bug 4525039 |
26 * @bug 4525039 |
27 * @summary Test to make sure that the serialVersionUID is properly |
27 * @summary Test to make sure that the serialVersionUID is properly |
28 * documented in the serialized form. |
28 * documented in the serialized form. |
29 * @author jamieh |
29 * @author jamieh |
30 * @library ../lib/ |
30 * @library ../lib |
31 * @build JavadocTester |
31 * @build JavadocTester |
32 * @build TestSerialVersionUID |
|
33 * @run main TestSerialVersionUID |
32 * @run main TestSerialVersionUID |
34 */ |
33 */ |
35 |
34 |
36 public class TestSerialVersionUID extends JavadocTester { |
35 public class TestSerialVersionUID 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 TestSerialVersionUID tester = new TestSerialVersionUID(); |
40 "-d", OUTPUT_DIR, |
39 tester.runTests(); |
41 SRC_DIR + "/C.java" |
40 } |
42 }; |
|
43 |
41 |
44 //Input for string search tests. |
42 @Test |
45 private static final String[][] TEST = { |
43 void test() { |
46 { "serialized-form.html", "-111111111111111L"} |
44 javadoc("-d", "out", |
47 }; |
45 testSrc("C.java")); |
|
46 checkExit(Exit.OK); |
48 |
47 |
49 /** |
48 checkOutput("serialized-form.html", true, |
50 * The entry point of the test. |
49 "-111111111111111L"); |
51 * @param args the array of command line arguments. |
|
52 */ |
|
53 public static void main(String[] args) { |
|
54 TestSerialVersionUID tester = new TestSerialVersionUID(); |
|
55 tester.run(ARGS, TEST, NO_TEST); |
|
56 tester.printSummary(); |
|
57 } |
50 } |
58 } |
51 } |