1134N/A/*
1134N/A * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
1134N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1134N/A *
1134N/A * This code is free software; you can redistribute it and/or modify it
1134N/A * under the terms of the GNU General Public License version 2 only, as
1134N/A * published by the Free Software Foundation.
1134N/A *
1134N/A * This code is distributed in the hope that it will be useful, but WITHOUT
1134N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1134N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1134N/A * version 2 for more details (a copy is included in the LICENSE file that
1134N/A * accompanied this code).
1134N/A *
1134N/A * You should have received a copy of the GNU General Public License version
1134N/A * 2 along with this work; if not, write to the Free Software Foundation,
1134N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1134N/A *
1134N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1134N/A * or visit www.oracle.com if you need additional information or have any
1134N/A * questions.
1134N/A */
1134N/A
1134N/A/*
1134N/A * @test
1134N/A * @bug 7132631
1134N/A * @summary Make sure that the help file is generated correctly.
1134N/A * @author Bhavesh Patel
1134N/A * @library ../lib/
1134N/A * @build JavadocTester TestHelpFile
1134N/A * @run main TestHelpFile
1134N/A */
1134N/A
1134N/Apublic class TestHelpFile extends JavadocTester {
1134N/A
1134N/A //Test information.
1134N/A private static final String BUG_ID = "7132631";
1134N/A
1134N/A //Javadoc arguments.
1134N/A private static final String[] ARGS = new String[] {
1134N/A "-d", BUG_ID, "-sourcepath", SRC_DIR,
1134N/A SRC_DIR + FS + "TestHelpFile.java"
1134N/A };
1134N/A
1134N/A private static final String[][] NEGATED_TEST = NO_TEST;
1134N/A
1134N/A private static final String[][] TEST = {
1134N/A {BUG_ID + FS + "help-doc.html",
1134N/A "<a href=\"constant-values.html\">Constant Field Values</a>"
1134N/A },
1134N/A };
1134N/A
1134N/A /**
1134N/A * The entry point of the test.
1134N/A * @param args the array of command line arguments.
1134N/A */
1134N/A public static void main(String[] args) {
1134N/A TestHelpFile tester = new TestHelpFile();
1134N/A run(tester, ARGS, TEST, NEGATED_TEST);
1134N/A tester.printSummary();
1134N/A }
1134N/A
1134N/A /**
1134N/A * {@inheritDoc}
1134N/A */
1134N/A public String getBugId() {
1134N/A return BUG_ID;
1134N/A }
1134N/A
1134N/A /**
1134N/A * {@inheritDoc}
1134N/A */
1134N/A public String getBugName() {
1134N/A return getClass().getName();
1134N/A }
1134N/A}