aboutsummaryrefslogtreecommitdiffstats
path: root/tests/reproducers/simple/UnsignedJnlpTemplate/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/UnsignedJnlpTemplate/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/UnsignedJnlpTemplate/testcases')
-rw-r--r--tests/reproducers/simple/UnsignedJnlpTemplate/testcases/UnsignedJnlpTemplateTest.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/reproducers/simple/UnsignedJnlpTemplate/testcases/UnsignedJnlpTemplateTest.java b/tests/reproducers/simple/UnsignedJnlpTemplate/testcases/UnsignedJnlpTemplateTest.java
index b2aec62..e2e9bbe 100644
--- a/tests/reproducers/simple/UnsignedJnlpTemplate/testcases/UnsignedJnlpTemplateTest.java
+++ b/tests/reproducers/simple/UnsignedJnlpTemplate/testcases/UnsignedJnlpTemplateTest.java
@@ -38,6 +38,7 @@ 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;
@@ -50,19 +51,19 @@ public class UnsignedJnlpTemplateTest {
@Test
public void jnlpTemplateIsUnchecked1() throws Exception {
- ServerAccess.ProcessResult pr = server.executeJavawsHeadless(l, "/UnsignedJnlpTemplate1.jnlp");
+ ProcessResult pr = server.executeJavawsHeadless(l, "/UnsignedJnlpTemplate1.jnlp");
Assert.assertTrue("Stdout should contains " + outputString + " but did not", pr.stdout.contains(outputString));
}
@Test
public void jnlpTemplateIsUnchecked2() throws Exception {
- ServerAccess.ProcessResult pr = server.executeJavawsHeadless(l, "/UnsignedJnlpTemplate2.jnlp");
+ ProcessResult pr = server.executeJavawsHeadless(l, "/UnsignedJnlpTemplate2.jnlp");
Assert.assertTrue("Stdout should contains " + outputString + " but did not", pr.stdout.contains(outputString));
}
@Test
public void jnlpTemplateIsUnchecked3() throws Exception {
- ServerAccess.ProcessResult pr = server.executeJavawsHeadless(l, "/UnsignedJnlpTemplate3.jnlp");
+ ProcessResult pr = server.executeJavawsHeadless(l, "/UnsignedJnlpTemplate3.jnlp");
Assert.assertTrue("Stdout should contains " + outputString + " but did not", pr.stdout.contains(outputString));
}
-} \ No newline at end of file
+}