181N/A/*
797N/A * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
181N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
181N/A *
181N/A * This code is free software; you can redistribute it and/or modify it
181N/A * under the terms of the GNU General Public License version 2 only, as
553N/A * published by the Free Software Foundation. Oracle designates this
181N/A * particular file as subject to the "Classpath" exception as provided
553N/A * by Oracle in the LICENSE file that accompanied this code.
181N/A *
181N/A * This code is distributed in the hope that it will be useful, but WITHOUT
181N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
181N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
181N/A * version 2 for more details (a copy is included in the LICENSE file that
181N/A * accompanied this code).
181N/A *
181N/A * You should have received a copy of the GNU General Public License version
181N/A * 2 along with this work; if not, write to the Free Software Foundation,
181N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
181N/A *
553N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
553N/A * or visit www.oracle.com if you need additional information or have any
553N/A * questions.
181N/A */
181N/A
181N/A/*
181N/A * @test
181N/A * @bug 6786028
181N/A * @summary This test verifys the use of <strong> HTML tag instead of <B> by Javadoc std doclet.
181N/A * @author Bhavesh Patel
181N/A * @library ../lib/
181N/A * @build JavadocTester
181N/A * @build TestHtmlStrongTag
181N/A * @run main TestHtmlStrongTag
181N/A */
181N/A
181N/Apublic class TestHtmlStrongTag extends JavadocTester {
181N/A
181N/A private static final String BUG_ID = "6786028";
181N/A private static final String[][] TEST1 = {
765N/A {BUG_ID + FS + "pkg1" + FS + "C1.html", "<span class=\"strong\">See Also:</span>"}};
181N/A private static final String[][] NEGATED_TEST1 = {
242N/A {BUG_ID + FS + "pkg1" + FS + "C1.html", "<STRONG>Method Summary</STRONG>"},
242N/A {BUG_ID + FS + "pkg1" + FS + "C1.html", "<B>"},
242N/A {BUG_ID + FS + "pkg1" + FS + "package-summary.html", "<STRONG>Class Summary</STRONG>"}};
181N/A private static final String[][] TEST2 = {
242N/A {BUG_ID + FS + "pkg2" + FS + "C2.html", "<B>Comments:</B>"}};
242N/A private static final String[][] NEGATED_TEST2 = {
181N/A {BUG_ID + FS + "pkg2" + FS + "C2.html", "<STRONG>Method Summary</STRONG>"},
181N/A {BUG_ID + FS + "pkg1" + FS + "package-summary.html", "<STRONG>Class Summary</STRONG>"}};
181N/A
181N/A private static final String[] ARGS1 =
181N/A new String[] {
181N/A "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg1"};
181N/A private static final String[] ARGS2 =
181N/A new String[] {
181N/A "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg2"};
181N/A
181N/A /**
181N/A * The entry point of the test.
181N/A * @param args the array of command line arguments.
181N/A */
181N/A public static void main(String[] args) {
181N/A TestHtmlStrongTag tester = new TestHtmlStrongTag();
181N/A run(tester, ARGS1, TEST1, NEGATED_TEST1);
242N/A run(tester, ARGS2, TEST2, NEGATED_TEST2);
181N/A tester.printSummary();
181N/A }
181N/A
181N/A /**
181N/A * {@inheritDoc}
181N/A */
181N/A public String getBugId() {
181N/A return BUG_ID;
181N/A }
181N/A
181N/A /**
181N/A * {@inheritDoc}
181N/A */
181N/A public String getBugName() {
181N/A return getClass().getName();
181N/A }
181N/A}