- Timestamp:
- Sep 24, 2014, 9:34:21 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/icedtea-web/tests/reproducers/simple/CreateClassLoader/testcases/CreateClassLoaderTest.java
r418 r429 36 36 */ 37 37 38 import net.sourceforge.jnlp.ProcessResult; 38 39 import net.sourceforge.jnlp.ServerAccess; 40 39 41 import org.junit.Assert; 40 41 42 import org.junit.Test; 42 43 … … 47 48 @Test 48 49 public void CreateClassLoaderLunch1() throws Exception { 49 ServerAccess.ProcessResult pr = server.executeJavawsHeadless(null, "/CreateClassLoader.jnlp");50 ProcessResult pr = server.executeJavawsHeadless(null, "/CreateClassLoader.jnlp"); 50 51 String s = "(?s).*java.security.AccessControlException.{0,5}access denied.{0,5}java.lang.RuntimePermission.{0,5}" + "createClassLoader" + ".*"; 51 52 Assert.assertTrue("Stderr should match "+s+" but didn't",pr.stderr.matches(s)); 52 53 String cc="ClassNotFoundException"; 53 54 Assert.assertFalse("stderr should NOT contains `"+cc+"`, but did",pr.stderr.contains(cc)); 54 Assert.assertFalse("stdout length should be <=2, but was "+pr.stdout.length(),pr.stdout.length()>2);55 55 Assert.assertFalse("CreateClassLoaderLunch1 should not be terminated, but was",pr.wasTerminated); 56 56 Assert.assertEquals((Integer) 0, pr.returnValue);
Note:
See TracChangeset
for help on using the changeset viewer.