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

Sun, 24 Feb 2013 11:36:58 -0800

author
jjg
date
Sun, 24 Feb 2013 11:36:58 -0800
changeset 1606
ccbe7ffdd867
child 1743
6a5288a298fd
permissions
-rw-r--r--

7112427: The doclet needs to be able to generate JavaFX documentation.
Reviewed-by: jjg
Contributed-by: jan.valenta@oracle.com

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@1606 26 * @bug 7112427
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@1606 41 "<dt><span class=\"strong\">See Also:</span></dt><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@1606 46 "<dl><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@1606 50 "<dl><dt><span class=\"strong\">Property description:</span></dt>" },
jjg@1606 51 {"./" + BUG_ID + "/C.html",
jjg@1606 52 "<td class=\"colLast\"><code><strong><a href=\"C.html#rateProperty\">rate</a></strong></code>" + NL +
jjg@1606 53 "<div class=\"block\">Defines the direction/speed at which the <code>Timeline</code> is expected to"},
jjg@1606 54 {"./" + BUG_ID + "/C.html",
jjg@1606 55 "<sub id=\"expert\">Expert tag text</sub>"},
jjg@1606 56 {"./" + BUG_ID + "/C.html",
jjg@1606 57 "<span class=\"strong\">Default value:</span>"},
jjg@1606 58 {"./" + BUG_ID + "/C.html",
jjg@1606 59 "<P>Sets the value of the property <CODE>Property</CODE>"},
jjg@1606 60 {"./" + BUG_ID + "/C.html",
jjg@1606 61 "<P>Gets the value of the property <CODE>Property</CODE>"},
jjg@1606 62 {"./" + BUG_ID + "/C.html",
jjg@1606 63 "<span class=\"strong\">Property description:</span>"},
jjg@1606 64 {"./" + BUG_ID + "/C.html",
jjg@1606 65 "<td class=\"colLast\"><code><strong><a href=\"C.html#setTestMethodProperty()\">setTestMethodProperty</a></strong>()</code>&nbsp;</td>" },
jjg@1606 66 {"./" + BUG_ID + "/C.html",
jjg@1606 67 "<h4>isPaused</h4>" + NL +
jjg@1606 68 "<pre>public final&nbsp;double&nbsp;isPaused()</pre>" + NL +
jjg@1606 69 "<div class=\"block\">Gets the value of the property paused.</div>" },
jjg@1606 70 {"./" + BUG_ID + "/D.html",
jjg@1606 71 "<h3>Properties inherited from class&nbsp;<a href=\"C.html\" title=\"class in &lt;Unnamed&gt;\">C</a></h3>" + NL +
jjg@1606 72 "<code><a href=\"C.html#pausedProperty\">paused</a>, <a href=\"C.html#rateProperty\">rate</a></code></li>" },
jjg@1606 73 };
jjg@1606 74 private static final String[][] NO_TEST =
jjg@1606 75 new String[][] {
jjg@1606 76 {"./" + BUG_ID + "/C.html",
jjg@1606 77 "A()"},
jjg@1606 78 };
jjg@1606 79
jjg@1606 80
jjg@1606 81 private static final String[] ARGS = new String[] {
jjg@1606 82 "-d", BUG_ID, "-sourcepath", SRC_DIR, "-private", "-javafx",
jjg@1606 83 SRC_DIR + FS + "C.java", SRC_DIR + FS + "D.java"
jjg@1606 84 };
jjg@1606 85
jjg@1606 86 /**
jjg@1606 87 * The entry point of the test.
jjg@1606 88 * @param args the array of command line arguments.
jjg@1606 89 */
jjg@1606 90 public static void main(String[] args) {
jjg@1606 91 TestJavaFX tester = new TestJavaFX();
jjg@1606 92 run(tester, ARGS, TEST, NO_TEST);
jjg@1606 93 tester.printSummary();
jjg@1606 94 }
jjg@1606 95
jjg@1606 96 /**
jjg@1606 97 * {@inheritDoc}
jjg@1606 98 */
jjg@1606 99 public String getBugId() {
jjg@1606 100 return BUG_ID;
jjg@1606 101 }
jjg@1606 102
jjg@1606 103 /**
jjg@1606 104 * {@inheritDoc}
jjg@1606 105 */
jjg@1606 106 public String getBugName() {
jjg@1606 107 return getClass().getName();
jjg@1606 108 }
jjg@1606 109 }

mercurial