< prev index next >
tests/system/src/test/java/test/com/sun/javafx/application/SwingNoExit.java
Print this page
rev 9491 : 8145203: Refactor systemTests for clear separation of tests
Reviewed-by: kcr
@@ -21,19 +21,20 @@
* 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 javafx.application.Platform;
import javafx.embed.swing.JFXPanel;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.paint.Color;
import junit.framework.AssertionFailedError;
-import util.Util;
+import test.util.Util;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
import java.awt.BorderLayout;
import java.awt.Dimension;
@@ -109,11 +110,11 @@
});
if (!runAndWait.await(Util.TIMEOUT, TimeUnit.MILLISECONDS)) {
throw new AssertionFailedError("Timeout waiting for Platform.exit()");
}
- final CountDownLatch exitLatch = PlatformImpl.test_getPlatformExitLatch();
+ final CountDownLatch exitLatch = PlatformImplShim.test_getPlatformExitLatch();
Thread.sleep(SLEEP_TIME);
// Platform.exit() should not cause FX to exit, while JFXPanel is alive
Assert.assertEquals("Platform.exit() caused FX to exit, while JFXPanel is alive",
1, exitLatch.getCount());
< prev index next >