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

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

@@ -23,22 +23,28 @@
  * questions.
  */
 
 package javafx.scene.shape;
 
+import com.sun.javafx.FXUnit;
 import com.sun.javafx.geom.Path2D;
 import com.sun.javafx.sg.prism.NGNode;
 import com.sun.javafx.sg.prism.NGPolygon;
 import javafx.collections.ObservableList;
 import javafx.scene.NodeTest;
+import org.junit.Rule;
 import org.junit.Test;
 
 import static com.sun.javafx.test.TestHelper.assertBoundsEqual;
 import static com.sun.javafx.test.TestHelper.box;
 import static org.junit.Assert.*;
 
 public class PolygonTest {
+
+    @Rule
+    public FXUnit fx = new FXUnit();
+
     @Test public void testPropertyPropagation_emptyPoints() {
         final StubPolygon polygon = new StubPolygon();
         NodeTest.callSyncPGNode(polygon);
         assertPGPolygonPointsEquals(polygon, new double[0]);
     }