aboutsummaryrefslogtreecommitdiffstats
path: root/tests/reproducers/simple/SetContextClassLoader/testcases/SetContextClassLoaderTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/reproducers/simple/SetContextClassLoader/testcases/SetContextClassLoaderTest.java')
-rw-r--r--tests/reproducers/simple/SetContextClassLoader/testcases/SetContextClassLoaderTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/reproducers/simple/SetContextClassLoader/testcases/SetContextClassLoaderTest.java b/tests/reproducers/simple/SetContextClassLoader/testcases/SetContextClassLoaderTest.java
index f45aedb..0796db7 100644
--- a/tests/reproducers/simple/SetContextClassLoader/testcases/SetContextClassLoaderTest.java
+++ b/tests/reproducers/simple/SetContextClassLoader/testcases/SetContextClassLoaderTest.java
@@ -35,6 +35,7 @@ obligated to do so. If you do not wish to do so, delete this
exception statement from your version.
*/
+import net.sourceforge.jnlp.ProcessResult;
import net.sourceforge.jnlp.ServerAccess;
import org.junit.Assert;
import org.junit.Test;
@@ -45,7 +46,7 @@ public class SetContextClassLoaderTest {
@Test
public void SetContextClassLoader1() throws Exception {
- ServerAccess.ProcessResult pr = server.executeJavawsHeadless(null, "/SetContextClassLoader.jnlp");
+ ProcessResult pr = server.executeJavawsHeadless(null, "/SetContextClassLoader.jnlp");
String s = "(?s).*java.security.AccessControlException.{0,5}access denied.{0,5}java.lang.RuntimePermission.{0,5}" + "setContextClassLoader" + ".*";
Assert.assertTrue("stderr should match "+s+" but didn't",pr.stderr.matches(s));
String cc="ClassNotFoundException";