aboutsummaryrefslogtreecommitdiffstats
path: root/tests/reproducers/signed/EmptySignedJar/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/EmptySignedJar/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/EmptySignedJar/testcases')
-rw-r--r--tests/reproducers/signed/EmptySignedJar/testcases/EmptySignedJarTest.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/reproducers/signed/EmptySignedJar/testcases/EmptySignedJarTest.java b/tests/reproducers/signed/EmptySignedJar/testcases/EmptySignedJarTest.java
index c2fda0a..6cfa884 100644
--- a/tests/reproducers/signed/EmptySignedJar/testcases/EmptySignedJarTest.java
+++ b/tests/reproducers/signed/EmptySignedJar/testcases/EmptySignedJarTest.java
@@ -1,4 +1,4 @@
-/* EmptySignedJar.java
+/* EmptySignedJarTest.java
Copyright (C) 2012 Red Hat, Inc.
This file is part of IcedTea.
@@ -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 net.sourceforge.jnlp.annotations.Bug;
@@ -53,21 +54,21 @@ public class EmptySignedJarTest {
@Test
public void checkingForRequiredResources() throws Exception {
String s = "Running SignedJarResource..";
- ServerAccess.ProcessResult pr = server.executeJavawsHeadless(l, "/SignedJarResource.jnlp");
+ ProcessResult pr = server.executeJavawsHeadless(l, "/SignedJarResource.jnlp");
Assert.assertTrue("Could not locate SignedJarResource class within SignedJarResource jar", pr.stdout.contains(s));
}
@Bug(id = "PR1049")
@Test
public void usingExtensionWithEmptyJar() throws Exception {
- ServerAccess.ProcessResult pr = server.executeJavawsHeadless(l, "/EmptySignedJarInExtensionJnlp.jnlp");
+ ProcessResult pr = server.executeJavawsHeadless(l, "/EmptySignedJarInExtensionJnlp.jnlp");
Assert.assertTrue("Stdout should contain " + jarOutput + " but did not", pr.stdout.contains(jarOutput));
}
@Bug(id = "PR1049")
@Test
public void usingLauncherWithEmptyJar() throws Exception {
- ServerAccess.ProcessResult pr = server.executeJavawsHeadless(l, "/EmptySignedJarInLaunchingJnlp.jnlp");
+ ProcessResult pr = server.executeJavawsHeadless(l, "/EmptySignedJarInLaunchingJnlp.jnlp");
Assert.assertTrue("Stdout should contain " + jarOutput + " but did not", pr.stdout.contains(jarOutput));
}
}