30 * @library ../lib
31 * @modules jdk.javadoc
32 * @build JavadocTester
33 * @run main TestWarnBadParamNames
34 */
35
36 public class TestWarnBadParamNames extends JavadocTester {
37
38 public static void main(String... args) throws Exception {
39 TestWarnBadParamNames tester = new TestWarnBadParamNames();
40 tester.runTests();
41 }
42
43 @Test
44 void test() {
45 javadoc("-Xdoclint:none",
46 "-d", "out",
47 testSrc("C.java"));
48 checkExit(Exit.OK);
49
50 checkOutput(Output.WARNING, true,
51 "warning - @param argument \"int\" is not a parameter name.",
52 "warning - @param argument \"IDontExist\" is not a parameter name.",
53 "warning - Parameter \"arg\" is documented more than once.");
54 }
55 }
|
30 * @library ../lib
31 * @modules jdk.javadoc
32 * @build JavadocTester
33 * @run main TestWarnBadParamNames
34 */
35
36 public class TestWarnBadParamNames extends JavadocTester {
37
38 public static void main(String... args) throws Exception {
39 TestWarnBadParamNames tester = new TestWarnBadParamNames();
40 tester.runTests();
41 }
42
43 @Test
44 void test() {
45 javadoc("-Xdoclint:none",
46 "-d", "out",
47 testSrc("C.java"));
48 checkExit(Exit.OK);
49
50 checkOutput(Output.OUT, true,
51 "warning - @param argument \"int\" is not a parameter name.",
52 "warning - @param argument \"IDontExist\" is not a parameter name.",
53 "warning - Parameter \"arg\" is documented more than once.");
54 }
55 }
|