< prev index next >
tests/system/src/test/java/sandbox/SandboxAppTest.java
Print this page
rev 9292 : 8139326: [TEST] Unit tests for JFXPanel with security manager don't detect errors
@@ -29,10 +29,11 @@
import java.io.File;
import junit.framework.AssertionFailedError;
import org.junit.Test;
import static org.junit.Assert.*;
+import static org.junit.Assume.*;
import static sandbox.Constants.*;
/**
* Unit test for running JavaFX apps in a sandbox with a restrictive
* security manager.
@@ -121,19 +122,18 @@
runSandboxedApp("FXNonApp");
}
@Test (timeout=10000)
public void testJFXPanelApp() throws Exception {
+ // TODO: re-enable this when 8139317 is fixed
+ assumeTrue(!PlatformUtil.isMac());
runSandboxedApp("JFXPanelApp");
}
@Test (timeout=10000)
public void testJFXPanelImplicitExitApp() throws Exception {
- // Test skipped on Mac OS X due to 8037776
- if (PlatformUtil.isMac()) {
- System.err.println("*** Skipping test on Mac OS X");
- return;
- }
+ // Test skipped on Mac OS X due to JDK bug 8037776
+ assumeTrue(!PlatformUtil.isMac());
runSandboxedApp("JFXPanelImplicitExitApp", 0);
}
}
< prev index next >