6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package javafx.scene;
27
28 import java.util.Arrays;
29 import java.util.Collection;
30
31 import javafx.event.Event;
32 import javafx.event.EventHandler;
33 import javafx.geometry.Point2D;
34 import javafx.scene.effect.BlendMode;
35 import javafx.scene.effect.Glow;
36 import javafx.scene.input.InputMethodRequests;
37 import javafx.scene.shape.Rectangle;
38 import javafx.scene.transform.Rotate;
39
40 import org.junit.runner.RunWith;
41 import org.junit.runners.Parameterized;
42 import org.junit.runners.Parameterized.Parameters;
43
44 import com.sun.javafx.event.EventHandlerManager;
45 import com.sun.javafx.test.PropertiesTestBase;
46 import javafx.geometry.NodeOrientation;
47
48 @RunWith(Parameterized.class)
49 public final class Node_properties_Test extends PropertiesTestBase {
50 @Parameters
51 public static Collection data() {
52 final Group testParent = new Group();
53 final Node testNode = new Rectangle();
54 testParent.getChildren().add(testNode);
55
56 final EventHandler testEventHandler =
57 event -> {
58 };
59
60 return Arrays.asList(new Object[] {
61 // config(testNode, "parent", , ),
62 // config(testNode, "scene", , ),
63 config(testNode, "id", "rect_1", "rect_2"),
64 config(testNode, "style", "style_1", "style_2"),
65 config(testNode, "visible", true, false),
66 config(testNode, "cursor", Cursor.DEFAULT, Cursor.CROSSHAIR),
|
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package test.javafx.scene;
27
28 import java.util.Arrays;
29 import java.util.Collection;
30
31 import javafx.event.Event;
32 import javafx.event.EventHandler;
33 import javafx.geometry.Point2D;
34 import javafx.scene.effect.BlendMode;
35 import javafx.scene.effect.Glow;
36 import javafx.scene.input.InputMethodRequests;
37 import javafx.scene.shape.Rectangle;
38 import javafx.scene.transform.Rotate;
39
40 import org.junit.runner.RunWith;
41 import org.junit.runners.Parameterized;
42 import org.junit.runners.Parameterized.Parameters;
43
44 import com.sun.javafx.event.EventHandlerManager;
45 import test.com.sun.javafx.test.PropertiesTestBase;
46 import javafx.geometry.NodeOrientation;
47 import javafx.scene.CacheHint;
48 import javafx.scene.Cursor;
49 import javafx.scene.DepthTest;
50 import javafx.scene.Group;
51 import javafx.scene.Node;
52
53 @RunWith(Parameterized.class)
54 public final class Node_properties_Test extends PropertiesTestBase {
55 @Parameters
56 public static Collection data() {
57 final Group testParent = new Group();
58 final Node testNode = new Rectangle();
59 testParent.getChildren().add(testNode);
60
61 final EventHandler testEventHandler =
62 event -> {
63 };
64
65 return Arrays.asList(new Object[] {
66 // config(testNode, "parent", , ),
67 // config(testNode, "scene", , ),
68 config(testNode, "id", "rect_1", "rect_2"),
69 config(testNode, "style", "style_1", "style_2"),
70 config(testNode, "visible", true, false),
71 config(testNode, "cursor", Cursor.DEFAULT, Cursor.CROSSHAIR),
|