langtools/test/com/sun/javadoc/testNonFrameWarning/TestNonFrameWarning.java
author jjg
Wed, 16 Apr 2014 16:17:09 -0700
changeset 23971 f5ff1f5a8dee
parent 9072 2efb24cb8c36
child 24065 fc4022e50129
permissions -rw-r--r--
8031649: Clean up javadoc tests Reviewed-by: jjg Contributed-by: neil.toda@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9072
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
     1
/*
23971
f5ff1f5a8dee 8031649: Clean up javadoc tests
jjg
parents: 9072
diff changeset
     2
 * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
9072
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
     4
 *
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
     7
 * published by the Free Software Foundation.
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
     8
 *
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    13
 * accompanied this code).
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    14
 *
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    18
 *
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    21
 * questions.
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    22
 */
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    23
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    24
/*
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    25
 * @test
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    26
 * @bug 7001086
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    27
 * @summary Test Non-frame warning.
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    28
 * @author Bhavesh Patel
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    29
 * @library ../lib/
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    30
 * @build JavadocTester TestNonFrameWarning
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    31
 * @run main TestNonFrameWarning
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    32
 */
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    33
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    34
public class TestNonFrameWarning extends JavadocTester {
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    35
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    36
    private static final String BUG_ID = "7001086";
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    37
    private static final String[][] TEST = {
23971
f5ff1f5a8dee 8031649: Clean up javadoc tests
jjg
parents: 9072
diff changeset
    38
        {BUG_ID + "/index.html",
9072
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    39
            "<p>This document is designed to be viewed using the frames feature. " +
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    40
            "If you see this message, you are using a non-frame-capable web client. " +
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    41
            "Link to <a href=\"pkg/package-summary.html\">Non-frame version</a>.</p>"
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    42
        }
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    43
    };
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    44
    private static final String[] ARGS = new String[]{
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    45
        "-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg"
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    46
    };
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    47
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    48
    /**
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    49
     * The entry point of the test.
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    50
     * @param args the array of command line arguments.
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    51
     */
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    52
    public static void main(String[] args) {
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    53
        TestNonFrameWarning tester = new TestNonFrameWarning();
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    54
        run(tester, ARGS, TEST, NO_TEST);
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    55
        tester.printSummary();
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    56
    }
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    57
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    58
    /**
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    59
     * {@inheritDoc}
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    60
     */
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    61
    public String getBugId() {
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    62
        return BUG_ID;
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    63
    }
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    64
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    65
    /**
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    66
     * {@inheritDoc}
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    67
     */
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    68
    public String getBugName() {
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    69
        return getClass().getName();
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    70
    }
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    71
}