34 public class TestConstantValuesDriver extends JavadocTester {
35
36 public static void main(String... args) throws Exception {
37 TestConstantValuesDriver tester = new TestConstantValuesDriver();
38 tester.runTests();
39 }
40
41 @Test
42 void test() {
43 javadoc("-d", "out",
44 testSrc("TestConstantValues.java"),
45 testSrc("TestConstantValues2.java"),
46 testSrc("A.java"));
47 checkExit(Exit.OK);
48
49 checkOutput("constant-values.html", true,
50 "TEST1PASSES",
51 "TEST2PASSES",
52 "TEST3PASSES",
53 "TEST4PASSES",
54 "<code>\"<Hello World>\"</code>");
55 }
56 }
|
34 public class TestConstantValuesDriver extends JavadocTester {
35
36 public static void main(String... args) throws Exception {
37 TestConstantValuesDriver tester = new TestConstantValuesDriver();
38 tester.runTests();
39 }
40
41 @Test
42 void test() {
43 javadoc("-d", "out",
44 testSrc("TestConstantValues.java"),
45 testSrc("TestConstantValues2.java"),
46 testSrc("A.java"));
47 checkExit(Exit.OK);
48
49 checkOutput("constant-values.html", true,
50 "TEST1PASSES",
51 "TEST2PASSES",
52 "TEST3PASSES",
53 "TEST4PASSES",
54 "<code>\"<Hello World>\"</code>",
55 "</a><code>public static final byte</code></td>\n" +
56 "<td><code><a href=\"TestConstantValues.html#BYTE_MAX_VALUE\">" +
57 "BYTE_MAX_VALUE</a></code></td>\n" +
58 "<td class=\"colLast\"><code>127</code></td>",
59 "</a><code>public static final byte</code></td>\n" +
60 "<td><code><a href=\"TestConstantValues.html#BYTE_MIN_VALUE\">" +
61 "BYTE_MIN_VALUE</a></code></td>\n" +
62 "<td class=\"colLast\"><code>-127</code></td>",
63 "</a><code>public static final char</code></td>\n" +
64 "<td><code><a href=\"TestConstantValues.html#CHAR_MAX_VALUE\">" +
65 "CHAR_MAX_VALUE</a></code></td>\n" +
66 "<td class=\"colLast\"><code>65535</code></td>",
67 "</a><code>public static final double</code></td>",
68 "<td><code><a href=\"TestConstantValues.html#DOUBLE_MAX_VALUE\">" +
69 "DOUBLE_MAX_VALUE</a></code></td>\n" +
70 "<td class=\"colLast\"><code>1.7976931348623157E308</code></td>",
71 "</a><code>public static final double</code></td>\n" +
72 "<td><code><a href=\"TestConstantValues.html#DOUBLE_MIN_VALUE\">" +
73 "DOUBLE_MIN_VALUE</a></code></td>",
74 "</a><code>public static final boolean</code></td>\n" +
75 "<td><code><a href=\"TestConstantValues.html#GOODBYE\">" +
76 "GOODBYE</a></code></td>",
77 "</a><code>public static final boolean</code></td>\n" +
78 "<td><code><a href=\"TestConstantValues.html#HELLO\">HELLO</a></code></td>\n" +
79 "<td class=\"colLast\"><code>true</code></td>"
80 );
81 }
82 }
|