Mon, 23 Jan 2017 17:03:12 -0800
Merge
bpatel@2116 | 1 | /* |
bpatel@2116 | 2 | * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
bpatel@2116 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
bpatel@2116 | 4 | * |
bpatel@2116 | 5 | * This code is free software; you can redistribute it and/or modify it |
bpatel@2116 | 6 | * under the terms of the GNU General Public License version 2 only, as |
bpatel@2116 | 7 | * published by the Free Software Foundation. Oracle designates this |
bpatel@2116 | 8 | * particular file as subject to the "Classpath" exception as provided |
bpatel@2116 | 9 | * by Oracle in the LICENSE file that accompanied this code. |
bpatel@2116 | 10 | * |
bpatel@2116 | 11 | * This code is distributed in the hope that it will be useful, but WITHOUT |
bpatel@2116 | 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
bpatel@2116 | 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
bpatel@2116 | 14 | * version 2 for more details (a copy is included in the LICENSE file that |
bpatel@2116 | 15 | * accompanied this code). |
bpatel@2116 | 16 | * |
bpatel@2116 | 17 | * You should have received a copy of the GNU General Public License version |
bpatel@2116 | 18 | * 2 along with this work; if not, write to the Free Software Foundation, |
bpatel@2116 | 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
bpatel@2116 | 20 | * |
bpatel@2116 | 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
bpatel@2116 | 22 | * or visit www.oracle.com if you need additional information or have any |
bpatel@2116 | 23 | * questions. |
bpatel@2116 | 24 | */ |
bpatel@2116 | 25 | |
bpatel@2116 | 26 | /* |
bpatel@2116 | 27 | * @test |
bpatel@2147 | 28 | * @bug 8026370 8026567 |
bpatel@2116 | 29 | * @summary This test checks the generated tag output. |
bpatel@2116 | 30 | * @author Bhavesh Patel |
bpatel@2116 | 31 | * @library ../lib/ |
bpatel@2116 | 32 | * @build JavadocTester TestTagOutput |
bpatel@2116 | 33 | * @run main TestTagOutput |
bpatel@2116 | 34 | */ |
bpatel@2116 | 35 | |
bpatel@2116 | 36 | public class TestTagOutput extends JavadocTester { |
bpatel@2116 | 37 | |
bpatel@2116 | 38 | private static final String BUG_ID = "8026370"; |
bpatel@2116 | 39 | private static final String[][] TEST = { |
bpatel@2116 | 40 | {BUG_ID + FS + "pkg1" + FS + "DeprecatedTag.html", |
bpatel@2147 | 41 | "<div class=\"block\"><span class=\"deprecatedLabel\">Deprecated.</span> </div>"}, |
bpatel@2116 | 42 | {BUG_ID + FS + "pkg1" + FS + "DeprecatedTag.html", |
bpatel@2147 | 43 | "<div class=\"block\"><span class=\"deprecatedLabel\">Deprecated.</span> " + |
bpatel@2147 | 44 | "<span class=\"deprecationComment\">Do not use this.</span></div>"}}; |
bpatel@2116 | 45 | |
bpatel@2116 | 46 | private static final String[][] NEGATED_TEST = { |
bpatel@2116 | 47 | {BUG_ID + FS + "pkg1" + FS + "DeprecatedTag.html", |
bpatel@2147 | 48 | "<div class=\"block\"><span class=\"deprecatedLabel\">Deprecated." + |
bpatel@2147 | 49 | "</span> <span class=\"deprecationComment\"></span></div>"}}; |
bpatel@2116 | 50 | |
bpatel@2116 | 51 | private static final String[] ARGS = |
bpatel@2116 | 52 | new String[] { |
bpatel@2116 | 53 | "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg1"}; |
bpatel@2116 | 54 | |
bpatel@2116 | 55 | /** |
bpatel@2116 | 56 | * The entry point of the test. |
bpatel@2116 | 57 | * @param args the array of command line arguments. |
bpatel@2116 | 58 | */ |
bpatel@2116 | 59 | public static void main(String[] args) { |
bpatel@2116 | 60 | TestTagOutput tester = new TestTagOutput(); |
bpatel@2116 | 61 | run(tester, ARGS, TEST, NEGATED_TEST); |
bpatel@2116 | 62 | tester.printSummary(); |
bpatel@2116 | 63 | } |
bpatel@2116 | 64 | |
bpatel@2116 | 65 | /** |
bpatel@2116 | 66 | * {@inheritDoc} |
bpatel@2116 | 67 | */ |
bpatel@2116 | 68 | public String getBugId() { |
bpatel@2116 | 69 | return BUG_ID; |
bpatel@2116 | 70 | } |
bpatel@2116 | 71 | |
bpatel@2116 | 72 | /** |
bpatel@2116 | 73 | * {@inheritDoc} |
bpatel@2116 | 74 | */ |
bpatel@2116 | 75 | public String getBugName() { |
bpatel@2116 | 76 | return getClass().getName(); |
bpatel@2116 | 77 | } |
bpatel@2116 | 78 | } |