modules/graphics/src/test/java/javafx/scene/effect/LightingTest.java

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

@@ -24,10 +24,12 @@
  */
 
 package javafx.scene.effect;
 
 import static com.sun.javafx.test.TestHelper.box;
+
+import com.sun.javafx.FXUnit;
 import com.sun.scenario.effect.Color4f;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertNull;
 import static org.junit.Assert.assertTrue;

@@ -35,13 +37,18 @@
 import javafx.beans.property.ObjectProperty;
 import javafx.beans.property.SimpleObjectProperty;
 import javafx.scene.paint.Color;
 
 import org.junit.Before;
+import org.junit.Rule;
 import org.junit.Test;
 
 public class LightingTest extends EffectsTestBase {
+
+    @Rule
+    public FXUnit fx = new FXUnit();
+
     private Lighting effect;
 
     @Before
     public void setUp() {
         effect = new Lighting();