From 451529c4953d24e031f747fe1dee6cd8b1bb7574 Mon Sep 17 00:00:00 2001 From: Jiri Vanek Date: Thu, 15 Sep 2011 15:27:40 +0200 Subject: current reproducers (see changelog) done more verbose --- .../testcases/AccessClassInPackageTest.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'tests/jnlp_tests/simple/AccessClassInPackage/testcases') diff --git a/tests/jnlp_tests/simple/AccessClassInPackage/testcases/AccessClassInPackageTest.java b/tests/jnlp_tests/simple/AccessClassInPackage/testcases/AccessClassInPackageTest.java index 1c46a91..c1166d0 100644 --- a/tests/jnlp_tests/simple/AccessClassInPackage/testcases/AccessClassInPackageTest.java +++ b/tests/jnlp_tests/simple/AccessClassInPackage/testcases/AccessClassInPackageTest.java @@ -47,13 +47,17 @@ public class AccessClassInPackageTest { @Test public void AccessClassInPackageTestLunch1() throws Exception { System.out.println("connecting AccessClassInPackageTest request"); + System.err.println("connecting AccessClassInPackageTest request"); ServerAccess.ProcessResult pr = server.executeJavawsHeadless(null, "/AccessClassInPackage.jnlp"); System.out.println(pr.stdout); System.err.println(pr.stderr); - Assert.assertTrue(pr.stderr.contains("java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.security.internal.spec)")); - Assert.assertFalse(pr.stderr.contains("ClassNotFoundException")); - Assert.assertFalse(pr.stdout.length() > 2); - Assert.assertFalse(pr.wasTerminated); + String c="java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.security.internal.spec)"; + Assert.assertTrue("stderr should contains `"+c+"`, but didn't ",pr.stderr.contains(c)); + 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("AccessClassInPackageTestLunch1 should not be terminated, but was",pr.wasTerminated); Assert.assertEquals((Integer) 0, pr.returnValue); } + } -- cgit v1.2.3