aboutsummaryrefslogtreecommitdiffstats
path: root/tests/jnlp_tests/simple/ReadEnvironment/testcases/ReadEnvironmentTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/jnlp_tests/simple/ReadEnvironment/testcases/ReadEnvironmentTest.java')
-rw-r--r--tests/jnlp_tests/simple/ReadEnvironment/testcases/ReadEnvironmentTest.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/jnlp_tests/simple/ReadEnvironment/testcases/ReadEnvironmentTest.java b/tests/jnlp_tests/simple/ReadEnvironment/testcases/ReadEnvironmentTest.java
index 3e0510e..b14e170 100644
--- a/tests/jnlp_tests/simple/ReadEnvironment/testcases/ReadEnvironmentTest.java
+++ b/tests/jnlp_tests/simple/ReadEnvironment/testcases/ReadEnvironmentTest.java
@@ -47,13 +47,16 @@ public class ReadEnvironmentTest {
@Test
public void ReadEnvironmentLunch1() throws Exception {
System.out.println("connecting ReadEnvironment request");
+ System.err.println("connecting ReadEnvironment request");
ServerAccess.ProcessResult pr = server.executeJavawsHeadless(null, "/ReadEnvironment.jnlp");
System.out.println(pr.stdout);
System.err.println(pr.stderr);
- Assert.assertTrue(pr.stderr.contains("java.security.AccessControlException: access denied (java.lang.RuntimePermission getenv.USER)"));
- 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 getenv.USER)";
+ 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("ReadEnvironmentLunch1 should not be terminated, but was",pr.wasTerminated);
Assert.assertEquals((Integer) 0, pr.returnValue);
}
}