aboutsummaryrefslogtreecommitdiffstats
path: root/tests/jnlp_tests/simple/CreateClassLoader/testcases/CreateClassLoaderTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/jnlp_tests/simple/CreateClassLoader/testcases/CreateClassLoaderTest.java')
-rw-r--r--tests/jnlp_tests/simple/CreateClassLoader/testcases/CreateClassLoaderTest.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/jnlp_tests/simple/CreateClassLoader/testcases/CreateClassLoaderTest.java b/tests/jnlp_tests/simple/CreateClassLoader/testcases/CreateClassLoaderTest.java
index 872a75a..8e7ea7c 100644
--- a/tests/jnlp_tests/simple/CreateClassLoader/testcases/CreateClassLoaderTest.java
+++ b/tests/jnlp_tests/simple/CreateClassLoader/testcases/CreateClassLoaderTest.java
@@ -47,13 +47,16 @@ public class CreateClassLoaderTest {
@Test
public void CreateClassLoaderLunch1() throws Exception {
System.out.println("connecting CreateClassLoader request");
+ System.err.println("connecting CreateClassLoader request");
ServerAccess.ProcessResult pr = server.executeJavawsHeadless(null, "/CreateClassLoader.jnlp");
System.out.println(pr.stdout);
System.err.println(pr.stderr);
- Assert.assertTrue(pr.stderr.contains("java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader)"));
- Assert.assertFalse(pr.stderr.contains("ClassNotFoundException"));
- Assert.assertFalse(pr.stdout.length() > 2);
- Assert.assertFalse(pr.wasTerminated);
+ String s="java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader)";
+ Assert.assertTrue("Stderr should contains "+s+" but didn't",pr.stderr.contains(s));
+ String cc="ClassNotFoundException";
+ Assert.assertFalse("stderr should NOT contains `"+cc+"`, but did",pr.stderr.contains(cc));
+ Assert.assertFalse("stdout length should be <=2, but was "+pr.stdout.length(),pr.stdout.length()>2);
+ Assert.assertFalse("CreateClassLoaderLunch1 should not be terminated, but was",pr.wasTerminated);
Assert.assertEquals((Integer) 0, pr.returnValue);
}
}