modules/graphics/src/test/java/com/sun/javafx/scene/traversal/TraverseInvisibleTest.java

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

@@ -30,29 +30,35 @@
 import static org.junit.Assert.assertTrue;
 
 import java.util.Arrays;
 import java.util.Collection;
 
+import com.sun.javafx.FXUnit;
 import javafx.geometry.Bounds;
 import javafx.scene.Group;
 import javafx.scene.Node;
 import javafx.scene.Scene;
 import javafx.scene.shape.Rectangle;
 import javafx.stage.Stage;
 
 import org.junit.After;
 import org.junit.Before;
+import org.junit.Rule;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.junit.runners.Parameterized;
 import org.junit.runners.Parameterized.Parameters;
 
 /**
  * Tests TraversalEngine with invisible nodes, using the default ContainerTabOrder algorithm,
  */
 @RunWith(Parameterized.class)
 public final class TraverseInvisibleTest {
+
+    @Rule
+    public final FXUnit fx = new FXUnit();
+
     private final int fromNumber;
     private final Direction direction;
     private final int invisibleNumber;
     private final int toNumber;