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

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

mercurial