modules/graphics/src/test/java/javafx/scene/input/ContextMenuEventTest.java
Print this page
rev 6167 : RT-35330 [Monocle] Remove StubToolkit and replace it with headless glass implementation
*** 23,32 ****
--- 23,33 ----
* questions.
*/
package javafx.scene.input;
+ import com.sun.javafx.FXUnit;
import com.sun.javafx.pgstub.StubScene;
import javafx.event.Event;
import javafx.scene.Group;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
*** 37,50 ****
--- 38,55 ----
import javafx.scene.shape.Rectangle;
import javafx.event.EventHandler;
import javafx.geometry.Point3D;
import javafx.stage.Stage;
+ import org.junit.Rule;
import org.junit.Test;
public class ContextMenuEventTest {
+ @Rule
+ public FXUnit fx = new FXUnit();
+
@Test public void testShortConstructor() {
Rectangle node = new Rectangle(10, 10);
node.setTranslateX(3);
node.setTranslateY(2);
node.setTranslateZ(50);