4169N/A/*
1178N/A * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved.
1178N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1178N/A *
1178N/A * This code is free software; you can redistribute it and/or modify it
1178N/A * under the terms of the GNU General Public License version 2 only, as
1178N/A * published by the Free Software Foundation.
1178N/A *
1178N/A * This code is distributed in the hope that it will be useful, but WITHOUT
1178N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1178N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1178N/A * version 2 for more details (a copy is included in the LICENSE file that
1178N/A * accompanied this code).
1178N/A *
1178N/A * You should have received a copy of the GNU General Public License version
1178N/A * 2 along with this work; if not, write to the Free Software Foundation,
1178N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2362N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
1178N/A * questions.
4169N/A */
1178N/A
1178N/A/*
4033N/A * @test
4033N/A * @bug 4074234
1178N/A * @summary Make Javadoc capable of traversing/recursing all of given subpackages.
1178N/A * @author jamieh
4033N/A * @library ../lib/
1178N/A * @build JavadocTester
4033N/A * @build TestRecurseSubPackages
1178N/A * @run main TestRecurseSubPackages
1178N/A */
1178N/A
1178N/Apublic class TestRecurseSubPackages extends JavadocTester {
4169N/A
1178N/A private static final String BUG_ID = "4074234";
1178N/A private static final String[] ARGS =
1178N/A new String[] {
1178N/A "-d", BUG_ID, "-sourcepath", SRC_DIR,
1178N/A "-subpackages", "pkg1", "-exclude", "pkg1.pkg2.packageToExclude"
4033N/A };
0N/A
0N/A /**
4169N/A * The entry point of the test.
4169N/A * @param args the array of command line arguments.
4169N/A */
4169N/A public static void main(String[] args) {
4169N/A String[][] tests = new String[6][2];
4169N/A for (int i = 0; i < tests.length; i++) {
4169N/A tests[i][0] = BUG_ID + FS + "allclasses-frame.html";
4169N/A tests[i][1] = "C" + (i+1) + ".html";
4169N/A }
4169N/A String[][] negatedTests = new String[][] {
4169N/A {BUG_ID + FS + "allclasses-frame.html", "DummyClass.html"}
4169N/A };
4169N/A TestRecurseSubPackages tester = new TestRecurseSubPackages();
4169N/A run(tester, ARGS, tests, negatedTests);
1178N/A tester.printSummary();
0N/A }
0N/A
1178N/A /**
0N/A * {@inheritDoc}
1178N/A */
0N/A public String getBugId() {
1178N/A return BUG_ID;
0N/A }
1178N/A
0N/A /**
1178N/A * {@inheritDoc}
1178N/A */
1178N/A public String getBugName() {
1178N/A return getClass().getName();
1178N/A }
0N/A}
1178N/A