langtools/test/tools/javadoc/sampleapi/SampleApiTest.java
author hannesw
Tue, 22 Mar 2016 14:23:16 +0100
changeset 36690 06b714373aa4
parent 35426 374342e56a56
child 38838 3d6ea76b35d6
permissions -rw-r--r--
8151810: for-in iteration does not provide per-iteration scope Reviewed-by: attila, lagergren
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
33919
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
     1
/*
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
     2
 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
     4
 *
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
     7
 * published by the Free Software Foundation.
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
     8
 *
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    13
 * accompanied this code).
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    14
 *
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    18
 *
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    21
 * questions.
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    22
 */
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    23
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    24
/*
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    25
 * @test
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    26
 * @bug 8130880
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    27
 * @library lib
35359
f04501964016 8148147: Sync up @modules from jigsaw/jake
alanb
parents: 33919
diff changeset
    28
 * @modules jdk.compiler/com.sun.tools.javac.api
f04501964016 8148147: Sync up @modules from jigsaw/jake
alanb
parents: 33919
diff changeset
    29
 *          jdk.compiler/com.sun.tools.javac.code
f04501964016 8148147: Sync up @modules from jigsaw/jake
alanb
parents: 33919
diff changeset
    30
 *          jdk.compiler/com.sun.tools.javac.parser
f04501964016 8148147: Sync up @modules from jigsaw/jake
alanb
parents: 33919
diff changeset
    31
 *          jdk.compiler/com.sun.tools.javac.tree
f04501964016 8148147: Sync up @modules from jigsaw/jake
alanb
parents: 33919
diff changeset
    32
 *          jdk.compiler/com.sun.tools.javac.util
33919
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    33
 * @run main sampleapi.SampleApiDefaultRunner -o:out/src
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    34
 * @run main SampleApiTest
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    35
 */
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    36
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    37
import com.sun.tools.javadoc.*;
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    38
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    39
public class SampleApiTest {
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    40
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    41
    public static void main(String... args) {
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    42
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    43
        // html4
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    44
        Main.execute(
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    45
            new String[] {
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    46
                "-d", "out/doc.html4",
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    47
                "-verbose",
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    48
                "-private",
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    49
                "-use",
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    50
                "-splitindex",
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    51
                "-linksource",
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    52
                "-html4",
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    53
                "-javafx",
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    54
                "-windowtitle", "SampleAPI",
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    55
                "-sourcepath", "out/src",
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    56
                "sampleapi.simple",
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    57
                "sampleapi.tiny",
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    58
                "sampleapi.fx"
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    59
            });
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    60
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    61
        // html5
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    62
        Main.execute(
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    63
            new String[] {
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    64
                "-d", "out/doc.html5",
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    65
                "-verbose",
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    66
                "-private",
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    67
                "-use",
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    68
                "-splitindex",
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    69
                "-linksource",
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    70
                "-html5",
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    71
                "-javafx",
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    72
                "-windowtitle", "SampleAPI",
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    73
                "-sourcepath", "out/src",
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    74
                "sampleapi.simple",
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    75
                "sampleapi.tiny",
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    76
                "sampleapi.fx"
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    77
            });
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    78
    }
e9fccc09cfc6 8130880: Create sampleapi regression test
ksrini
parents:
diff changeset
    79
}