TestNavagation.java revision 0
0N/A/*
844N/A * Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
0N/A * published by the Free Software Foundation.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
0N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
0N/A * CA 95054 USA or visit www.sun.com if you need additional information or
0N/A * have any questions.
0N/A */
0N/A
0N/A/*
0N/A * @test
0N/A * @bug 4131628 4664607
0N/A * @summary Make sure the Next/Prev Class links iterate through all types.
1064N/A * Make sure the navagation is 2 columns, not 3.
1064N/A * @author jamieh
1064N/A * @library ../lib/
1064N/A * @build JavadocTester
0N/A * @build TestNavagation
1064N/A * @run main TestNavagation
1064N/A */
0N/A
0N/Apublic class TestNavagation extends JavadocTester {
0N/A
0N/A //Test information.
0N/A private static final String BUG_ID = "4131628-4664607";
0N/A
0N/A //Javadoc arguments.
0N/A private static final String[] ARGS = new String[] {
0N/A "-d", BUG_ID, "-sourcepath", SRC_DIR, "-source", "1.5", "pkg"
1064N/A };
0N/A
1064N/A //Input for string search tests.
0N/A private static final String[][] TEST = {
1365N/A {BUG_ID + FS + "pkg" + FS + "A.html", " PREV CLASS "},
1064N/A {BUG_ID + FS + "pkg" + FS + "A.html",
1064N/A "<A HREF=\"../pkg/C.html\" title=\"class in pkg\"><B>NEXT CLASS</B></A>"},
0N/A {BUG_ID + FS + "pkg" + FS + "C.html",
1064N/A "<A HREF=\"../pkg/A.html\" title=\"annotation in pkg\"><B>PREV CLASS</B></A>"},
1064N/A {BUG_ID + FS + "pkg" + FS + "C.html",
0N/A "<A HREF=\"../pkg/E.html\" title=\"enum in pkg\"><B>NEXT CLASS</B></A>"},
0N/A {BUG_ID + FS + "pkg" + FS + "E.html",
0N/A "<A HREF=\"../pkg/C.html\" title=\"class in pkg\"><B>PREV CLASS</B></A>"},
0N/A {BUG_ID + FS + "pkg" + FS + "E.html",
0N/A "<A HREF=\"../pkg/I.html\" title=\"interface in pkg\"><B>NEXT CLASS</B></A>"},
0N/A {BUG_ID + FS + "pkg" + FS + "I.html",
0N/A "<A HREF=\"../pkg/E.html\" title=\"enum in pkg\"><B>PREV CLASS</B></A>"},
0N/A {BUG_ID + FS + "pkg" + FS + "I.html", "&nbsp;NEXT CLASS"},
1064N/A // Test for 4664607
0N/A {BUG_ID + FS + "pkg" + FS + "I.html",
0N/A "<TD COLSPAN=2 BGCOLOR=\"#EEEEFF\" CLASS=\"NavBarCell1\">" + NL +
0N/A "<A NAME=\"navbar_top_firstrow\"><!-- --></A>"}
};
private static final String[][] NEGATED_TEST = NO_TEST;
/**
* The entry point of the test.
* @param args the array of command line arguments.
*/
public static void main(String[] args) {
TestNavagation tester = new TestNavagation();
run(tester, ARGS, TEST, NEGATED_TEST);
tester.printSummary();
}
/**
* {@inheritDoc}
*/
public String getBugId() {
return BUG_ID;
}
/**
* {@inheritDoc}
*/
public String getBugName() {
return getClass().getName();
}
}