< prev index next >

tests/system/src/test/java/test/com/sun/javafx/application/SingleExitCommon.java

Print this page
rev 9491 : 8145203: Refactor systemTests for clear separation of tests
Reviewed-by: kcr

@@ -21,25 +21,26 @@
  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  */
 
-package com.sun.javafx.application;
+package test.com.sun.javafx.application;
 
+import com.sun.javafx.application.PlatformImplShim;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.TimeUnit;
 import javafx.application.Application;
 import javafx.application.Platform;
 import javafx.scene.Group;
 import javafx.scene.Scene;
 import javafx.scene.paint.Color;
 import javafx.stage.Stage;
 import junit.framework.AssertionFailedError;
-import util.Util;
+import test.util.Util;
 
 import static org.junit.Assert.*;
-import static util.Util.TIMEOUT;
+import static test.util.Util.TIMEOUT;
 
 /**
  * Test program for Platform implicit exit behavior using the primary stage.
  * Each of the tests must be run in a separate JVM which is why each
  * is in its own subclass.

@@ -192,11 +193,11 @@
             if (stageShown) {
                 Thread.sleep(SLEEP_TIME);
                 Util.runAndWait(myApp.primaryStage::hide);
             }
 
-            final CountDownLatch exitLatch = PlatformImpl.test_getPlatformExitLatch();
+            final CountDownLatch exitLatch = PlatformImplShim.test_getPlatformExitLatch();
 
             if (reEnableImplicitExit) {
                 Thread.sleep(SLEEP_TIME);
                 assertEquals(1, stopped.getCount());
                 assertEquals(1, exitLatch.getCount());
< prev index next >