modules/graphics/src/test/java/javafx/scene/SubSceneTest.java

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

*** 22,45 **** --- 22,51 ---- * or visit www.oracle.com if you need additional information or have any * questions. */ package javafx.scene; + import com.sun.javafx.FXUnit; import javafx.stage.Stage; import com.sun.javafx.sg.prism.NGCamera; import com.sun.javafx.sg.prism.NGSubScene; import com.sun.javafx.tk.Toolkit; import javafx.application.Platform; import javafx.scene.layout.Pane; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; + + import org.junit.Rule; import org.junit.Test; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; public class SubSceneTest { + @Rule + public FXUnit fx = new FXUnit(); + @Test public void isOnFxAppThread() { assertTrue(Platform.isFxApplicationThread()); }