modules/graphics/src/test/java/javafx/scene/RegistrationTest.java
Print this page
rev 6167 : RT-35330 [Monocle] Remove StubToolkit and replace it with headless glass implementation
*** 28,42 ****
--- 28,48 ----
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
+ import com.sun.javafx.FXUnit;
+ import org.junit.Rule;
import org.junit.Test;
import com.sun.javafx.scene.traversal.TraversalEngine;
public class RegistrationTest {
+
+ @Rule
+ public FXUnit fx = new FXUnit();
+
/**
* Asserts that this node is registered with this traversal engine.
*/
void assertIsRegistered(Node n, TraversalEngine te) {
assertTrue(te.registeredNodes.contains(n));