Path: blob/aarch64-shenandoah-jdk8u272-b10/langtools/test/com/sun/javadoc/testDupParamWarn/TestDupParamWarn.java
48584 views
/*1* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*/2223/*24* @test25* @bug 474585526* @summary Test to ensure that the doclet does not print out bad27* warning messages about duplicate param tags.28* @author jamieh29* @library ../lib/30* @build JavadocTester31* @build TestDupParamWarn32* @run main TestDupParamWarn33*/3435public class TestDupParamWarn extends JavadocTester {3637private static final String BUG_ID = "4745855";38private static final String[] ARGS =39new String[] {"-d", BUG_ID, "-sourcepath",40SRC_DIR + FS, "pkg"};41private static final String[][] NEGATED_TEST =42new String[][] {{WARNING_OUTPUT,43"Parameter \"a\" is documented more than once."}};4445/**46* The entry point of the test.47* @param args the array of command line arguments.48*/49public static void main(String[] args) {50run(new TestDupParamWarn(), ARGS, NO_TEST, NEGATED_TEST);51}5253/**54* {@inheritDoc}55*/56public String getBugId() {57return BUG_ID;58}5960/**61* {@inheritDoc}62*/63public String getBugName() {64return getClass().getName();65}66}676869