langtools/test/com/sun/javadoc/testNonFrameWarning/TestNonFrameWarning.java
author lana
Mon, 11 Aug 2014 09:25:30 -0700
changeset 25880 e5967ea9bde2
parent 24399 af1a0220d0fa
permissions -rw-r--r--
Merge
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
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    29
 * @library ../lib
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    30
 * @build JavadocTester
9072
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
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    36
    public static void main(String... args) throws Exception {
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    37
        TestNonFrameWarning tester = new TestNonFrameWarning();
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    38
        tester.runTests();
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    39
    }
9072
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    40
24399
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    41
    @Test
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    42
    void test() {
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    43
        javadoc("-d", "out",
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    44
                "-sourcepath", testSrc,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    45
                "pkg");
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    46
        checkExit(Exit.OK);
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    47
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    48
        checkOutput("index.html", true,
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    49
                "<p>This document is designed to be viewed using the frames feature. "
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    50
                + "If you see this message, you are using a non-frame-capable web client. "
af1a0220d0fa 8038730: Clean up the way JavadocTester is invoked, and checks for errors.
jjg
parents: 24072
diff changeset
    51
                + "Link to <a href=\"pkg/package-summary.html\">Non-frame version</a>.</p>");
9072
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    52
    }
2efb24cb8c36 7001086: NLS: un-used resources should be removed from standard.properties and improper concatenation
bpatel
parents:
diff changeset
    53
}