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