modules/graphics/src/test/java/javafx/scene/SceneTest.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;
+import com.sun.javafx.FXUnit;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.scene.layout.StackPane;
import javafx.scene.layout.TilePane;
import javafx.scene.layout.VBox;
@@ -42,10 +43,11 @@
import javafx.beans.InvalidationListener;
import javafx.beans.Observable;
import javafx.scene.input.MouseEvent;
import org.junit.After;
import org.junit.Before;
+import org.junit.Rule;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertSame;
@@ -56,10 +58,13 @@
* Tests various aspects of Scene.
*
*/
public class SceneTest {
+ @Rule
+ public FXUnit fx = new FXUnit();
+
private Stage stage;
private boolean handler1Called = false;
private boolean handler2Called = false;