/* * Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ /* * @test * @bug 7112427 8012295 8025633 8026567 8061305 8081854 8150130 8162363 * 8167967 8172528 8175200 8178830 8182257 8186332 8182765 8025091 * 8203791 8184205 * @summary Test of the JavaFX doclet features. * @library ../../lib * @modules jdk.javadoc/jdk.javadoc.internal.tool * @build javadoc.tester.* * @run main TestJavaFX */ import javadoc.tester.JavadocTester; public class TestJavaFX extends JavadocTester { public static void main(String... args) throws Exception { TestJavaFX tester = new TestJavaFX(); tester.runTests(); } @Test public void test1() { javadoc("-d", "out1", "-sourcepath", testSrc, "-javafx", "--disable-javafx-strict-checks", "-package", "pkg1"); checkExit(Exit.OK); checkOutput("pkg1/C.html", true, "
See Also:
\n" + "
getRate(), \n" + "setRate(double)
", "
public final " + "void setRate​" + "(double value)
\n" + "
Sets the value of the property rate.
\n" + "
\n" + "
Property description:
", "
public final " + "double getRate()
\n" + "
Gets the value of the property rate.
\n" + "
\n" + "
Property description:
", "C.DoubleProperty\n" + "" + "rate\n" + "\n" + "
Defines the direction/speed at which the " + "Timeline is expected to\n" + " be played.
\n", "Default value:", "Since:\n" + "
JavaFX 8.0
", "

Sets the value of the property Property", "

Gets the value of the property Property", "Property description:", "" + "" + "setTestMethodProperty()", "" + "paused\n" + "\n" + "

Defines if paused.
", "
\n" + "

paused

\n" + "
public final " + "" + "C.BooleanProperty pausedProperty
\n" + "
Defines if paused. The second line.
", "
\n" + "

isPaused

\n" + "
public final " + "double isPaused()
\n" + "
Gets the value of the property paused.
", "
\n" + "

setPaused

\n" + "
public final " + "void setPaused​" + "(boolean value)
\n" + "
Sets the value of the property paused.
\n" + "
\n" + "
Property description:
\n" + "
Defines if paused. The second line.
\n" + "
Default value:
\n" + "
false
", "
\n" + "

isPaused

\n" + "
public final " + "double isPaused()
\n" + "
Gets the value of the property paused.
\n" + "
\n" + "
Property description:
\n" + "
Defines if paused. The second line.
\n" + "
Default value:
\n" + "
false
", "
\n" + "

rate

\n" + "
public final " + "" + "C.DoubleProperty rateProperty
\n" + "
Defines the direction/speed at which the " + "Timeline is expected to\n" + " be played. This is the second line.
", "
\n" + "

setRate

\n" + "
public final " + "void setRate​" + "(double value)
\n" + "
Sets the value of the property rate.
\n" + "
\n" + "
Property description:
\n" + "
Defines the direction/speed at which the Timeline is expected to\n" + " be played. This is the second line.
\n" + "
Default value:
\n" + "
11
\n" + "
Since:
\n" + "
JavaFX 8.0
", "
\n" + "

getRate

\n" + "
public final " + "double getRate()
\n" + "
Gets the value of the property rate.
\n" + "
\n" + "
Property description:
\n" + "
Defines the direction/speed at which the Timeline is expected to\n" + " be played. This is the second line.
\n" + "
Default value:
\n" + "
11
\n" + "
Since:
\n" + "
JavaFX 8.0
", "
\n" + "

Property Summary

\n" + "
\n\n" + "", "\n" + "\n", "\n" + "\n"); checkOutput("pkg1/C.html", false, "A()", "

Property Summary

\n" + "
\n" + "
" + "
", "
\n" + "\n", "\n" + "\n"); checkOutput("index-all.html", true, "
Gets the value of the property paused.
", "
Defines if paused.
"); checkOutput("pkg1/D.html", true, "

Properties inherited from class pkg1." + "C

\n" + "" + "paused, rate"); checkOutput("pkg1/D.html", false, "shouldNotAppear"); } /* * Test with -javafx option enabled, to ensure property getters and setters * are treated correctly. */ @Test public void test2() { javadoc("-d", "out2a", "-sourcepath", testSrc, "-javafx", "--disable-javafx-strict-checks", "-package", "pkg2"); checkExit(Exit.OK); checkOutput("pkg2/Test.html", true, "
\n" + "

Property Details

\n" + "
    \n" + "
  • \n" + "
    \n" + "

    beta

    \n" + "
    public " + "java.lang.Object" + " betaProperty
    \n" + "
    \n" + "
  • \n" + "
  • \n" + "
    \n" + "

    gamma

    \n" + "
    public final " + "java.util.List<java.lang.String>" + " gammaProperty
    \n" + "
    \n" + "
  • \n" + "
  • \n" + "
    \n" + "

    delta

    \n" + "
    public final " + "java.util.List<java.util.Set<? super java.lang.Object>>" + " deltaProperty
    \n" + "
    \n" + "
  • \n" + "
\n" + "
", "
\n" + "

Property Summary

\n" + "
\n
Properties 
C.BooleanProperty
C.DoubleProperty
C.BooleanProperty
C.DoubleProperty
\n" + ""); checkOutput("pkg2/Test.html", false, "

Property Summary

\n" + "
\n" + "
" + "
"); } /* * Test without -javafx option, to ensure property getters and setters * are treated just like any other java method. */ @Test public void test3() { javadoc("-d", "out2b", "-sourcepath", testSrc, "-package", "pkg2"); checkExit(Exit.OK); checkOutput("pkg2/Test.html", false, "

Property Summary

"); checkOutput("pkg2/Test.html", true, "
\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "\n" + "" ); } /* * Force the doclet to emit a warning when processing a synthesized, * DocComment, and ensure that the run succeeds, using the newer * --javafx flag. */ @Test public void test4() { javadoc("-d", "out4", "--javafx", "--disable-javafx-strict-checks", "-Xdoclint:none", "-sourcepath", testSrc, "-package", "pkg4"); checkExit(Exit.OK); // make sure the doclet indeed emits the warning checkOutput(Output.OUT, true, "C.java:0: warning - invalid usage of tag >"); } }
Properties 
Modifier and TypeMethodDescription
<T> java.lang.Object" + "alphaProperty" + "​(java.util.List<T> foo) 
java.lang.Object" + "betaProperty() 
java.util.List<java.util.Set<? super java.lang.Object>>" + "" + "deltaProperty() 
java.util.List<java.lang.String>" + "gammaProperty()