TestEmptyClass.java revision 553
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk * Copyright (c) 2001, 2006, Oracle and/or its affiliates. All rights reserved.
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk * This code is free software; you can redistribute it and/or modify it
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk * under the terms of the GNU General Public License version 2 only, as
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk * published by the Free Software Foundation.
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk * This code is distributed in the hope that it will be useful, but WITHOUT
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk * version 2 for more details (a copy is included in the LICENSE file that
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk * accompanied this code).
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk * You should have received a copy of the GNU General Public License version
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk * 2 along with this work; if not, write to the Free Software Foundation,
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk * or visit www.oracle.com if you need additional information or have any
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk * questions.
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk * @bug 4483401 4483407 4483409 4483413 4494343
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk * @summary Test to make sure that Javadoc behaves properly when
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk * run on a completely empty class (no comments or members).
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk * @author jamieh
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk * @library ../lib/
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk * @build JavadocTester
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk * @build TestEmptyClass
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk * @run main TestEmptyClass
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenkpublic class TestEmptyClass extends JavadocTester {
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk private static final String[][] NEGATED_TEST = {
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk //The overview tree should not link to classes that were not documented
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk {OUTPUT_DIR + FS + "overview-tree.html", "<A HREF=\"TestEmptyClass.html\">"},
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk //The index page should not link to classes that were not documented
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk {OUTPUT_DIR + FS + "index-all.html", "<A HREF=\"TestEmptyClass.html\">"},
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR + FS + "src",
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk private static final String BUG_ID = "4483401 4483407 4483409 4483413 4494343";
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk * The entry point of the test.
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk * @param args the array of command line arguments.
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk int exitCode = run(tester, ARGS, TEST, NEGATED_TEST);
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk throw new Error("Error found while executing Javadoc");
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk * {@inheritDoc}
4b8d88eb610aa1e0bb6ec632f792744b3d6b5f22jeff.schenk * {@inheritDoc}