test/langtools/jdk/javadoc/doclet/testWarnBadParamNames/TestWarnBadParamNames.java
changeset 53097 2e82ca64b25d
parent 47216 71c04702a3d5
equal deleted inserted replaced
53096:58154bf80f90 53097:2e82ca64b25d
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    25  * @test
    25  * @test
    26  * @bug 4693440
    26  * @bug 4693440
    27  * @summary Test to make sure that warning is printed when bad parameter
    27  * @summary Test to make sure that warning is printed when bad parameter
    28  * name is used with param.
    28  * name is used with param.
    29  * @author jamieh
    29  * @author jamieh
    30  * @library ../lib
    30  * @library ../../lib
    31  * @modules jdk.javadoc/jdk.javadoc.internal.tool
    31  * @modules jdk.javadoc/jdk.javadoc.internal.tool
    32  * @build JavadocTester
    32  * @build javadoc.tester.*
    33  * @run main TestWarnBadParamNames
    33  * @run main TestWarnBadParamNames
    34  */
    34  */
       
    35 
       
    36 import javadoc.tester.JavadocTester;
    35 
    37 
    36 public class TestWarnBadParamNames extends JavadocTester {
    38 public class TestWarnBadParamNames extends JavadocTester {
    37 
    39 
    38     public static void main(String... args) throws Exception {
    40     public static void main(String... args) throws Exception {
    39         TestWarnBadParamNames tester = new TestWarnBadParamNames();
    41         TestWarnBadParamNames tester = new TestWarnBadParamNames();
    40         tester.runTests();
    42         tester.runTests();
    41     }
    43     }
    42 
    44 
    43     @Test
    45     @Test
    44     void test() {
    46     public void test() {
    45         javadoc("-Xdoclint:none",
    47         javadoc("-Xdoclint:none",
    46                 "-d", "out",
    48                 "-d", "out",
    47                 testSrc("C.java"));
    49                 testSrc("C.java"));
    48         checkExit(Exit.OK);
    50         checkExit(Exit.OK);
    49 
    51