aboutsummaryrefslogtreecommitdiffstats
path: root/tests/reproducers/signed/SignedJnlpCaseTestOne/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/signed/SignedJnlpCaseTestOne/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/signed/SignedJnlpCaseTestOne/testcases')
-rw-r--r--tests/reproducers/signed/SignedJnlpCaseTestOne/testcases/SignedJnlpCaseOneTest.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/reproducers/signed/SignedJnlpCaseTestOne/testcases/SignedJnlpCaseOneTest.java b/tests/reproducers/signed/SignedJnlpCaseTestOne/testcases/SignedJnlpCaseOneTest.java
index d410790..d8bd03b 100644
--- a/tests/reproducers/signed/SignedJnlpCaseTestOne/testcases/SignedJnlpCaseOneTest.java
+++ b/tests/reproducers/signed/SignedJnlpCaseTestOne/testcases/SignedJnlpCaseOneTest.java
@@ -38,7 +38,9 @@ exception statement from your version.
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
+import net.sourceforge.jnlp.ProcessResult;
import net.sourceforge.jnlp.ServerAccess;
+
import org.junit.Assert;
import org.junit.Test;
@@ -49,14 +51,14 @@ public class SignedJnlpCaseOneTest {
@Test
public void launchingFileMatchesSigned() throws Exception {
- ServerAccess.ProcessResult pr = server.executeJavawsHeadless(l, "/SignedJnlpCaseTestOne1.jnlp");
+ ProcessResult pr = server.executeJavawsHeadless(l, "/SignedJnlpCaseTestOne1.jnlp");
String s = "Running signed application in main";
Assert.assertTrue("Stdout should contains " + s + " but did not", pr.stdout.contains(s));
}
@Test
public void launchingFileDoesNotMatchSigned() throws Exception {
- ServerAccess.ProcessResult pr = server.executeJavawsHeadless(l, "/SignedJnlpCaseTestOne2.jnlp");
+ ProcessResult pr = server.executeJavawsHeadless(l, "/SignedJnlpCaseTestOne2.jnlp");
String s = "net.sourceforge.jnlp.LaunchException: Fatal: Application Error: The signed " +
"JNLP file did not match the launching JNLP file. Missing Resource: Signed Application did not match " +
"launching JNLP File";