TestClassCrossReferences.java revision 765
2958N/A/*
2958N/A * Copyright (c) 2002, 2005, Oracle and/or its affiliates. All rights reserved.
2958N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2958N/A *
2958N/A * This code is free software; you can redistribute it and/or modify it
2958N/A * under the terms of the GNU General Public License version 2 only, as
2958N/A * published by the Free Software Foundation.
2958N/A *
2958N/A * This code is distributed in the hope that it will be useful, but WITHOUT
2958N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
6982N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
6982N/A * version 2 for more details (a copy is included in the LICENSE file that
2958N/A * accompanied this code).
2958N/A *
2958N/A * You should have received a copy of the GNU General Public License version
2958N/A * 2 along with this work; if not, write to the Free Software Foundation,
6982N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
6982N/A *
6982N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
6982N/A * or visit www.oracle.com if you need additional information or have any
2958N/A * questions.
2958N/A */
2958N/A
2958N/A/*
4495N/A * @test
2958N/A * @bug 4652655 4857717
2958N/A * @summary This test verifies that class cross references work properly.
2958N/A * @author jamieh
2958N/A * @library ../lib/
2958N/A * @build JavadocTester
2958N/A * @build TestClassCrossReferences
2958N/A * @run main TestClassCrossReferences
2958N/A */
2958N/A
2958N/Apublic class TestClassCrossReferences extends JavadocTester {
2958N/A
4495N/A private static final String BUG_ID = "4652655-4857717";
4495N/A private static final String[][] TEST = {
2958N/A {BUG_ID + FS + "C.html",
4495N/A "<a href=\"http://java.sun.com/j2se/1.4/docs/api/java/math/package-summary.html?is-external=true\"><code>Link to math package</code></a>"},
4495N/A {BUG_ID + FS + "C.html",
4495N/A "<a href=\"http://java.sun.com/j2se/1.4/docs/api/javax/swing/text/AbstractDocument.AttributeContext.html?is-external=true\" " +
4495N/A "title=\"class or interface in javax.swing.text\"><code>Link to AttributeContext innerclass</code></a>"},
4495N/A {BUG_ID + FS + "C.html",
4495N/A "<a href=\"http://java.sun.com/j2se/1.4/docs/api/java/math/BigDecimal.html?is-external=true\" " +
4495N/A "title=\"class or interface in java.math\"><code>Link to external class BigDecimal</code></a>"},
4495N/A {BUG_ID + FS + "C.html",
4495N/A "<a href=\"http://java.sun.com/j2se/1.4/docs/api/java/math/BigInteger.html?is-external=true#gcd(java.math.BigInteger)\" " +
4495N/A "title=\"class or interface in java.math\"><code>Link to external member gcd</code></a>"},
4495N/A {BUG_ID + FS + "C.html",
4495N/A "<dl>" + NL + "<dt><strong>Overrides:</strong></dt>" + NL +
4495N/A "<dd><code>toString</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>" + NL +
4495N/A "</dl>"}
4495N/A };
4495N/A private static final String[][] NEGATED_TEST = NO_TEST;
4495N/A private static final String[] ARGS =
4495N/A new String[] {
4495N/A "-d", BUG_ID, "-sourcepath", SRC_DIR,
4495N/A "-linkoffline", "http://java.sun.com/j2se/1.4/docs/api/",
4495N/A SRC_DIR, SRC_DIR + FS + "C.java"};
4495N/A
4495N/A /**
4495N/A * The entry point of the test.
4495N/A * @param args the array of command line arguments.
4495N/A */
4495N/A public static void main(String[] args) {
2958N/A TestClassCrossReferences tester = new TestClassCrossReferences();
4495N/A run(tester, ARGS, TEST, NEGATED_TEST);
4495N/A tester.printSummary();
4495N/A }
4495N/A
4495N/A /**
4495N/A * {@inheritDoc}
4495N/A */
4495N/A public String getBugId() {
4495N/A return BUG_ID;
4495N/A }
4495N/A
4495N/A /**
4495N/A * {@inheritDoc}
4495N/A */
4495N/A public String getBugName() {
4495N/A return getClass().getName();
4495N/A }
4495N/A}
4495N/A