modules/graphics/src/test/java/javafx/scene/shape/ShapeTest.java

Print this page
rev 6167 : RT-35330 [Monocle] Remove StubToolkit and replace it with headless glass implementation

@@ -23,10 +23,11 @@
  * questions.
  */
 
 package javafx.scene.shape;
 
+import com.sun.javafx.FXUnit;
 import com.sun.javafx.scene.DirtyBits;
 import com.sun.javafx.sg.prism.NGNode;
 import com.sun.javafx.sg.prism.NGShape;
 import javafx.beans.value.WritableValue;
 import javafx.collections.FXCollections;

@@ -38,20 +39,24 @@
 import javafx.scene.Group;
 import javafx.scene.NodeTest;
 import javafx.scene.Scene;
 import javafx.scene.paint.Color;
 import org.junit.Assert;
+import org.junit.Rule;
 import org.junit.Test;
 
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.List;
 
 import static org.junit.Assert.*;
 
 public class ShapeTest {
 
+    @Rule
+    public FXUnit fx = new FXUnit();
+
     @Test public void testBoundPropertySync_StrokeType() throws Exception {
         NodeTest.assertObjectProperty_AsStringSynced(
                 new StubShape(),
                 "strokeType", "strokeType", StrokeType.CENTERED);
     }