TestDupParamWarn.java revision 3233:b5d08bc0d224
150120Swpaul/* 250120Swpaul * Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved. 350120Swpaul * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 450120Swpaul * 550120Swpaul * This code is free software; you can redistribute it and/or modify it 650120Swpaul * under the terms of the GNU General Public License version 2 only, as 750120Swpaul * published by the Free Software Foundation. 850120Swpaul * 950120Swpaul * This code is distributed in the hope that it will be useful, but WITHOUT 1050120Swpaul * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1150120Swpaul * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1250120Swpaul * version 2 for more details (a copy is included in the LICENSE file that 1350120Swpaul * accompanied this code). 1450120Swpaul * 1550120Swpaul * You should have received a copy of the GNU General Public License version 1650120Swpaul * 2 along with this work; if not, write to the Free Software Foundation, 1750120Swpaul * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1850120Swpaul * 1950120Swpaul * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2050120Swpaul * or visit www.oracle.com if you need additional information or have any 2150120Swpaul * questions. 2250120Swpaul */ 2350120Swpaul 2450120Swpaul/* 2550120Swpaul * @test 2650120Swpaul * @bug 4745855 2750120Swpaul * @summary Test to ensure that the doclet does not print out bad 2850120Swpaul * warning messages about duplicate param tags. 2950120Swpaul * @author jamieh 3050120Swpaul * @library ../lib 3150120Swpaul * @modules jdk.javadoc 3250120Swpaul * @build JavadocTester 33119418Sobrien * @run main TestDupParamWarn 34119418Sobrien */ 35119418Sobrien 3650120Swpaulpublic class TestDupParamWarn extends JavadocTester { 3750120Swpaul 3850120Swpaul public static void main(String... args) throws Exception { 3950120Swpaul JavadocTester tester = new TestDupParamWarn(); 4050120Swpaul tester.runTests(); 4150120Swpaul } 4250120Swpaul 4350120Swpaul @Test 4450120Swpaul void test() { 4550120Swpaul javadoc("-d", "out", 4650120Swpaul "-sourcepath", testSrc, 4750120Swpaul "pkg"); 4850120Swpaul checkExit(Exit.OK); 4950120Swpaul 5050120Swpaul checkOutput(Output.OUT, false, 5150120Swpaul "Parameter \"a\" is documented more than once."); 5250120Swpaul } 5350120Swpaul} 5450120Swpaul