< prev index next >

tests/system/src/test/java/test/sandbox/SandboxAppTest.java

Print this page




  82                 throw new AssertionFailedError(testAppName
  83                         + ": Application timeout");
  84             case ERROR_SECURITY_EXCEPTION:
  85                 throw new AssertionFailedError(testAppName
  86                         + ": Application failed with a security exception");
  87             case ERROR_NO_SECURITY_EXCEPTION:
  88                 throw new AssertionFailedError(testAppName
  89                         + ": Application did not get expected security exception");
  90             case ERROR_UNEXPECTED_EXCEPTION:
  91                 throw new AssertionFailedError(testAppName
  92                         + ": Application failed with unexpected exception");
  93 
  94            default:
  95                 throw new AssertionFailedError(testAppName
  96                         + ": Unexpected error exit: " + retVal);
  97         }
  98     }
  99 
 100     // TEST CASES
 101 
 102     @Test (timeout=10000)
 103     public void testFXApp() throws Exception {
 104         runSandboxedApp("FXApp");
 105     }
 106 
 107     @Test (timeout=10000)
 108     public void testFXNonApp() throws Exception {
 109         runSandboxedApp("FXNonApp");
 110     }
 111 
 112     @Test (timeout=10000)
 113     public void testJFXPanelApp() throws Exception {
 114         // TODO: re-enable this when 8139317 is fixed
 115         assumeTrue(!PlatformUtil.isMac());
 116         runSandboxedApp("JFXPanelApp");
 117     }
 118 
 119     @Test (timeout=10000)
 120     public void testJFXPanelImplicitExitApp() throws Exception {
 121         // Test skipped on Mac OS X due to JDK bug 8037776
 122         assumeTrue(!PlatformUtil.isMac());
 123         runSandboxedApp("JFXPanelImplicitExitApp", 0);
 124     }
 125 
 126 }


  82                 throw new AssertionFailedError(testAppName
  83                         + ": Application timeout");
  84             case ERROR_SECURITY_EXCEPTION:
  85                 throw new AssertionFailedError(testAppName
  86                         + ": Application failed with a security exception");
  87             case ERROR_NO_SECURITY_EXCEPTION:
  88                 throw new AssertionFailedError(testAppName
  89                         + ": Application did not get expected security exception");
  90             case ERROR_UNEXPECTED_EXCEPTION:
  91                 throw new AssertionFailedError(testAppName
  92                         + ": Application failed with unexpected exception");
  93 
  94            default:
  95                 throw new AssertionFailedError(testAppName
  96                         + ": Unexpected error exit: " + retVal);
  97         }
  98     }
  99 
 100     // TEST CASES
 101 
 102     @Test (timeout=15000)
 103     public void testFXApp() throws Exception {
 104         runSandboxedApp("FXApp");
 105     }
 106 
 107     @Test (timeout=15000)
 108     public void testFXNonApp() throws Exception {
 109         runSandboxedApp("FXNonApp");
 110     }
 111 
 112     @Test (timeout=15000)
 113     public void testJFXPanelApp() throws Exception {
 114         // TODO: re-enable this when 8139317 is fixed
 115         assumeTrue(!PlatformUtil.isMac());
 116         runSandboxedApp("JFXPanelApp");
 117     }
 118 
 119     @Test (timeout=15000)
 120     public void testJFXPanelImplicitExitApp() throws Exception {
 121         // Test skipped on Mac OS X due to JDK bug 8037776
 122         assumeTrue(!PlatformUtil.isMac());
 123         runSandboxedApp("JFXPanelImplicitExitApp", 0);
 124     }
 125 
 126 }
< prev index next >