langtools/test/com/sun/javadoc/testJavaFX/TestJavaFX.java
author jjg
Tue, 22 Apr 2014 17:57:40 -0700
changeset 24072 e7549dcbc4af
parent 24065 fc4022e50129
child 24399 af1a0220d0fa
permissions -rw-r--r--
8040903: Clean up use of BUG_ID in javadoc tests Reviewed-by: ksrini
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
     1
/*
23971
f5ff1f5a8dee 8031649: Clean up javadoc tests
jjg
parents: 21478
diff changeset
     2
 * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
     4
 *
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
     7
 * published by the Free Software Foundation.
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
     8
 *
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    13
 * accompanied this code).
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    14
 *
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    18
 *
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    21
 * questions.
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    22
 */
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    23
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    24
/*
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    25
 * @test
21478
fa4c7cda1b41 8026567: Use meaningful style names for strong and italic styles.
bpatel
parents: 21008
diff changeset
    26
 * @bug 7112427 8012295 8025633 8026567
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    27
 * @summary Test of the JavaFX doclet features.
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    28
 * @author jvalenta
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    29
 * @library ../lib/
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    30
 * @build JavadocTester TestJavaFX
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    31
 * @run main TestJavaFX
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    32
 */
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    33
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    34
public class TestJavaFX extends JavadocTester {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    35
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    36
    private static final String[][] TEST =
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    37
        new String[][] {
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
    38
            { "C.html",
23971
f5ff1f5a8dee 8031649: Clean up javadoc tests
jjg
parents: 21478
diff changeset
    39
                "<dt><span class=\"seeLabel\">See Also:</span></dt>\n" +
f5ff1f5a8dee 8031649: Clean up javadoc tests
jjg
parents: 21478
diff changeset
    40
                "<dd><a href=\"C.html#getRate--\"><code>getRate()</code></a>, \n" +
21008
af0b915df7cc 8025633: Fix javadoc to generate valid anchor names
bpatel
parents: 19253
diff changeset
    41
                "<a href=\"C.html#setRate-double-\"><code>setRate(double)</code></a></dd>"},
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
    42
            { "C.html",
23971
f5ff1f5a8dee 8031649: Clean up javadoc tests
jjg
parents: 21478
diff changeset
    43
                "<pre>public final&nbsp;void&nbsp;setRate(double&nbsp;value)</pre>\n" +
f5ff1f5a8dee 8031649: Clean up javadoc tests
jjg
parents: 21478
diff changeset
    44
                "<div class=\"block\">Sets the value of the property rate.</div>\n" +
f5ff1f5a8dee 8031649: Clean up javadoc tests
jjg
parents: 21478
diff changeset
    45
                "<dl>\n" +
f5ff1f5a8dee 8031649: Clean up javadoc tests
jjg
parents: 21478
diff changeset
    46
                "<dt><span class=\"simpleTagLabel\">Property description:</span></dt>" },
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
    47
            { "C.html",
23971
f5ff1f5a8dee 8031649: Clean up javadoc tests
jjg
parents: 21478
diff changeset
    48
                "<pre>public final&nbsp;double&nbsp;getRate()</pre>\n" +
f5ff1f5a8dee 8031649: Clean up javadoc tests
jjg
parents: 21478
diff changeset
    49
                "<div class=\"block\">Gets the value of the property rate.</div>\n" +
f5ff1f5a8dee 8031649: Clean up javadoc tests
jjg
parents: 21478
diff changeset
    50
                "<dl>\n" +
f5ff1f5a8dee 8031649: Clean up javadoc tests
jjg
parents: 21478
diff changeset
    51
                "<dt><span class=\"simpleTagLabel\">Property description:</span></dt>" },
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
    52
            { "C.html",
23971
f5ff1f5a8dee 8031649: Clean up javadoc tests
jjg
parents: 21478
diff changeset
    53
                "<td class=\"colLast\"><code><span class=\"memberNameLink\"><a href=\"C.html#rateProperty\">rate</a></span></code>\n" +
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    54
                "<div class=\"block\">Defines the direction/speed at which the <code>Timeline</code> is expected to"},
17572
1081a023532f 8012295: Cleanup JavaFX features in standard doclet
jjg
parents: 17567
diff changeset
    55
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
    56
            { "C.html",
21478
fa4c7cda1b41 8026567: Use meaningful style names for strong and italic styles.
bpatel
parents: 21008
diff changeset
    57
                "<span class=\"simpleTagLabel\">Default value:</span>"},
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
    58
            { "C.html",
23971
f5ff1f5a8dee 8031649: Clean up javadoc tests
jjg
parents: 21478
diff changeset
    59
                "<span class=\"simpleTagLabel\">Since:</span></dt>\n" +
f5ff1f5a8dee 8031649: Clean up javadoc tests
jjg
parents: 21478
diff changeset
    60
                "<dd>JavaFX 8.0</dd>" },
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
    61
            { "C.html",
17572
1081a023532f 8012295: Cleanup JavaFX features in standard doclet
jjg
parents: 17567
diff changeset
    62
                "<p>Sets the value of the property <code>Property</code>"},
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
    63
            { "C.html",
17572
1081a023532f 8012295: Cleanup JavaFX features in standard doclet
jjg
parents: 17567
diff changeset
    64
                "<p>Gets the value of the property <code>Property</code>"},
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
    65
            { "C.html",
21478
fa4c7cda1b41 8026567: Use meaningful style names for strong and italic styles.
bpatel
parents: 21008
diff changeset
    66
                "<span class=\"simpleTagLabel\">Property description:</span>"},
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
    67
            { "C.html",
21478
fa4c7cda1b41 8026567: Use meaningful style names for strong and italic styles.
bpatel
parents: 21008
diff changeset
    68
                "<td class=\"colLast\"><code><span class=\"memberNameLink\"><a href=\"C.html#setTestMethodProperty--\">setTestMethodProperty</a></span>()</code>&nbsp;</td>" },
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
    69
            { "C.html",
23971
f5ff1f5a8dee 8031649: Clean up javadoc tests
jjg
parents: 21478
diff changeset
    70
                "<h4>isPaused</h4>\n" +
f5ff1f5a8dee 8031649: Clean up javadoc tests
jjg
parents: 21478
diff changeset
    71
                "<pre>public final&nbsp;double&nbsp;isPaused()</pre>\n" +
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    72
                "<div class=\"block\">Gets the value of the property paused.</div>" },
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
    73
            { "D.html",
23971
f5ff1f5a8dee 8031649: Clean up javadoc tests
jjg
parents: 21478
diff changeset
    74
                "<h3>Properties inherited from class&nbsp;<a href=\"C.html\" title=\"class in &lt;Unnamed&gt;\">C</a></h3>\n" +
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    75
                "<code><a href=\"C.html#pausedProperty\">paused</a>, <a href=\"C.html#rateProperty\">rate</a></code></li>" },
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    76
        };
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    77
    private static final String[][] NO_TEST =
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    78
        new String[][] {
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
    79
            { "C.html",
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    80
                "A()"},
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    81
        };
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    82
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    83
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    84
    private static final String[] ARGS = new String[] {
24072
e7549dcbc4af 8040903: Clean up use of BUG_ID in javadoc tests
jjg
parents: 24065
diff changeset
    85
        "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, "-javafx",
23971
f5ff1f5a8dee 8031649: Clean up javadoc tests
jjg
parents: 21478
diff changeset
    86
        SRC_DIR + "/C.java", SRC_DIR + "/D.java"
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    87
    };
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    88
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    89
    /**
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    90
     * The entry point of the test.
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    91
     * @param args the array of command line arguments.
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    92
     */
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    93
    public static void main(String[] args) {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    94
        TestJavaFX tester = new TestJavaFX();
24065
fc4022e50129 8041150: Avoid silly use of static methods in JavadocTester
jjg
parents: 23971
diff changeset
    95
        tester.run(ARGS, TEST, NO_TEST);
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    96
        tester.printSummary();
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    97
    }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    98
}