aboutsummaryrefslogtreecommitdiffstats
path: root/tests/reproducers/simple/ReadProperties/testcases
diff options
context:
space:
mode:
authorAndrew Azores <[email protected]>2013-11-07 09:59:22 -0500
committerAndrew Azores <[email protected]>2013-11-07 09:59:22 -0500
commitcc383fcf7288977d01608d9da4d9d84d167e1aad (patch)
treef5b899aa9cd705f7d1aba497874c8c787018903d /tests/reproducers/simple/ReadProperties/testcases
parent8f59c1b0bf5fed4fce80ebcc0bc588e62dde706d (diff)
Reproducer test cleanup to remove deprecation warnings and type checking warnings.
ServerAccess.ProcessResult removed and reference replaced with ProcessResult. junit.framework.assert replaced in favour of org.junit.Assert. Added parameterized typing to instantiation of several fields and local variables where the declaration was already parameterized.
Diffstat (limited to 'tests/reproducers/simple/ReadProperties/testcases')
-rw-r--r--tests/reproducers/simple/ReadProperties/testcases/ReadPropertiesTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/reproducers/simple/ReadProperties/testcases/ReadPropertiesTest.java b/tests/reproducers/simple/ReadProperties/testcases/ReadPropertiesTest.java
index dfe9590..9244529 100644
--- a/tests/reproducers/simple/ReadProperties/testcases/ReadPropertiesTest.java
+++ b/tests/reproducers/simple/ReadProperties/testcases/ReadPropertiesTest.java
@@ -35,7 +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;
@@ -47,7 +47,7 @@ public class ReadPropertiesTest {
@Test
public void ReadPropertiesLunch1() throws Exception {
- ServerAccess.ProcessResult pr=server.executeJavawsHeadless(null,"/ReadProperties1.jnlp");
+ ProcessResult pr=server.executeJavawsHeadless(null,"/ReadProperties1.jnlp");
String s = "(?s).*java.security.AccessControlException.{0,5}access denied.{0,5}java.util.PropertyPermission.{0,5}" + "user.name.{0,5}read" + ".*";
Assert.assertTrue("stderr should match "+s+" but didn't",pr.stderr.matches(s));
String cc="ClassNotFoundException";
@@ -59,7 +59,7 @@ public class ReadPropertiesTest {
@Test
public void ReadPropertiesLunch2() throws Exception {
- ServerAccess.ProcessResult pr=server.executeJavawsHeadless(null,"/ReadProperties2.jnlp");
+ ProcessResult pr=server.executeJavawsHeadless(null,"/ReadProperties2.jnlp");
String s = "(?s).*java.security.AccessControlException.{0,5}access denied.{0,5}java.util.PropertyPermission.{0,5}" + "user.home.{0,5}read" + ".*";
Assert.assertTrue("stderr should match "+s+" but didn't",pr.stderr.matches(s));
String cc="ClassNotFoundException";