test/jdk/javadoc/doclet/testDupParamWarn/TestDupParamWarn.java

Print this page




  30  * @library ../lib
  31  * @modules jdk.javadoc
  32  * @build JavadocTester
  33  * @run main TestDupParamWarn
  34  */
  35 
  36 public class TestDupParamWarn extends JavadocTester {
  37 
  38     public static void main(String... args) throws Exception {
  39         JavadocTester tester = new TestDupParamWarn();
  40         tester.runTests();
  41     }
  42 
  43     @Test
  44     void test() {
  45         javadoc("-d", "out",
  46                 "-sourcepath", testSrc,
  47                 "pkg");
  48         checkExit(Exit.OK);
  49 
  50         checkOutput(Output.WARNING, false,
  51             "Parameter \"a\" is documented more than once.");
  52     }
  53 }


  30  * @library ../lib
  31  * @modules jdk.javadoc
  32  * @build JavadocTester
  33  * @run main TestDupParamWarn
  34  */
  35 
  36 public class TestDupParamWarn extends JavadocTester {
  37 
  38     public static void main(String... args) throws Exception {
  39         JavadocTester tester = new TestDupParamWarn();
  40         tester.runTests();
  41     }
  42 
  43     @Test
  44     void test() {
  45         javadoc("-d", "out",
  46                 "-sourcepath", testSrc,
  47                 "pkg");
  48         checkExit(Exit.OK);
  49 
  50         checkOutput(Output.OUT, false,
  51             "Parameter \"a\" is documented more than once.");
  52     }
  53 }