aboutsummaryrefslogtreecommitdiffstats
path: root/tests/reproducers/simple/CreateClassLoader/testcases/CreateClassLoaderTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/reproducers/simple/CreateClassLoader/testcases/CreateClassLoaderTest.java')
-rw-r--r--tests/reproducers/simple/CreateClassLoader/testcases/CreateClassLoaderTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/reproducers/simple/CreateClassLoader/testcases/CreateClassLoaderTest.java b/tests/reproducers/simple/CreateClassLoader/testcases/CreateClassLoaderTest.java
index 46b7300..2de9f5a 100644
--- a/tests/reproducers/simple/CreateClassLoader/testcases/CreateClassLoaderTest.java
+++ b/tests/reproducers/simple/CreateClassLoader/testcases/CreateClassLoaderTest.java
@@ -35,9 +35,10 @@ 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.Assert;
import org.junit.Test;
public class CreateClassLoaderTest {
@@ -46,7 +47,7 @@ public class CreateClassLoaderTest {
@Test
public void CreateClassLoaderLunch1() throws Exception {
- ServerAccess.ProcessResult pr = server.executeJavawsHeadless(null, "/CreateClassLoader.jnlp");
+ ProcessResult pr = server.executeJavawsHeadless(null, "/CreateClassLoader.jnlp");
String s = "(?s).*java.security.AccessControlException.{0,5}access denied.{0,5}java.lang.RuntimePermission.{0,5}" + "createClassLoader" + ".*";
Assert.assertTrue("Stderr should match "+s+" but didn't",pr.stderr.matches(s));
String cc="ClassNotFoundException";