test/com/sun/javadoc/testJavaFX/TestJavaFX.java

Wed, 18 Sep 2013 22:47:06 -0700

author
bpatel
date
Wed, 18 Sep 2013 22:47:06 -0700
changeset 2036
8df12c315ea3
parent 1935
8c55df2442c1
child 2101
933ba3f81a87
permissions
-rw-r--r--

8024096: some javadoc tests may contain false positive results
Reviewed-by: jjg

     1 /*
     2  * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     8  *
     9  * This code is distributed in the hope that it will be useful, but WITHOUT
    10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    12  * version 2 for more details (a copy is included in the LICENSE file that
    13  * accompanied this code).
    14  *
    15  * You should have received a copy of the GNU General Public License version
    16  * 2 along with this work; if not, write to the Free Software Foundation,
    17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    18  *
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    20  * or visit www.oracle.com if you need additional information or have any
    21  * questions.
    22  */
    24 /*
    25  * @test
    26  * @bug 7112427 8012295
    27  * @summary Test of the JavaFX doclet features.
    28  * @author jvalenta
    29  * @library ../lib/
    30  * @build JavadocTester TestJavaFX
    31  * @run main TestJavaFX
    32  */
    34 public class TestJavaFX extends JavadocTester {
    36     private static final String BUG_ID = "7112427";
    38     private static final String[][] TEST =
    39         new String[][] {
    40             {"./" + BUG_ID + "/C.html",
    41                 "<dt><span class=\"strong\">See Also:</span></dt>" + NL + "<dd><a href=\"C.html#getRate()\"><code>getRate()</code></a>, " + NL +
    42                 "<a href=\"C.html#setRate(double)\"><code>setRate(double)</code></a></dd>"},
    43             {"./" + BUG_ID + "/C.html",
    44                 "<pre>public final&nbsp;void&nbsp;setRate(double&nbsp;value)</pre>" + NL +
    45                 "<div class=\"block\">Sets the value of the property rate.</div>" + NL +
    46                 "<dl>" + NL + "<dt><span class=\"strong\">Property description:</span></dt>" },
    47             {"./" + BUG_ID + "/C.html",
    48                 "<pre>public final&nbsp;double&nbsp;getRate()</pre>" + NL +
    49                 "<div class=\"block\">Gets the value of the property rate.</div>" + NL +
    50                 "<dl>" + NL + "<dt><span class=\"strong\">Property description:</span></dt>" },
    51             {"./" + BUG_ID + "/C.html",
    52                 "<td class=\"colLast\"><code><span class=\"strong\"><a href=\"C.html#rateProperty\">rate</a></span></code>" + NL +
    53                 "<div class=\"block\">Defines the direction/speed at which the <code>Timeline</code> is expected to"},
    55             {"./" + BUG_ID + "/C.html",
    56                 "<span class=\"strong\">Default value:</span>"},
    57             {"./" + BUG_ID + "/C.html",
    58                 "<span class=\"strong\">Since:</span></dt>" + NL + "<dd>JavaFX 8.0</dd>" },
    59             {"./" + BUG_ID + "/C.html",
    60                 "<p>Sets the value of the property <code>Property</code>"},
    61             {"./" + BUG_ID + "/C.html",
    62                 "<p>Gets the value of the property <code>Property</code>"},
    63             {"./" + BUG_ID + "/C.html",
    64                 "<span class=\"strong\">Property description:</span>"},
    65             {"./" + BUG_ID + "/C.html",
    66                 "<td class=\"colLast\"><code><span class=\"strong\"><a href=\"C.html#setTestMethodProperty()\">setTestMethodProperty</a></span>()</code>&nbsp;</td>" },
    67             {"./" + BUG_ID + "/C.html",
    68                 "<h4>isPaused</h4>" + NL +
    69                 "<pre>public final&nbsp;double&nbsp;isPaused()</pre>" + NL +
    70                 "<div class=\"block\">Gets the value of the property paused.</div>" },
    71             {"./" + BUG_ID + "/D.html",
    72                 "<h3>Properties inherited from class&nbsp;<a href=\"C.html\" title=\"class in &lt;Unnamed&gt;\">C</a></h3>" + NL +
    73                 "<code><a href=\"C.html#pausedProperty\">paused</a>, <a href=\"C.html#rateProperty\">rate</a></code></li>" },
    74         };
    75     private static final String[][] NO_TEST =
    76         new String[][] {
    77             {"./" + BUG_ID + "/C.html",
    78                 "A()"},
    79         };
    82     private static final String[] ARGS = new String[] {
    83         "-d", BUG_ID, "-sourcepath", SRC_DIR, "-javafx",
    84         SRC_DIR + FS + "C.java", SRC_DIR + FS + "D.java"
    85     };
    87     /**
    88      * The entry point of the test.
    89      * @param args the array of command line arguments.
    90      */
    91     public static void main(String[] args) {
    92         TestJavaFX tester = new TestJavaFX();
    93         run(tester, ARGS, TEST, NO_TEST);
    94         tester.printSummary();
    95     }
    97     /**
    98      * {@inheritDoc}
    99      */
   100     public String getBugId() {
   101         return BUG_ID;
   102     }
   104     /**
   105      * {@inheritDoc}
   106      */
   107     public String getBugName() {
   108         return getClass().getName();
   109     }
   110 }

mercurial