aboutsummaryrefslogtreecommitdiffstats
path: root/tests/reproducers/simple/AppletReadsInvalidJar/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/AppletReadsInvalidJar/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/AppletReadsInvalidJar/testcases')
-rw-r--r--tests/reproducers/simple/AppletReadsInvalidJar/testcases/AppletReadsInvalidJarTests.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/reproducers/simple/AppletReadsInvalidJar/testcases/AppletReadsInvalidJarTests.java b/tests/reproducers/simple/AppletReadsInvalidJar/testcases/AppletReadsInvalidJarTests.java
index 11b0bb0..3f50f76 100644
--- a/tests/reproducers/simple/AppletReadsInvalidJar/testcases/AppletReadsInvalidJarTests.java
+++ b/tests/reproducers/simple/AppletReadsInvalidJar/testcases/AppletReadsInvalidJarTests.java
@@ -35,12 +35,13 @@ 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 net.sourceforge.jnlp.annotations.TestInBrowsers;
import net.sourceforge.jnlp.browsertesting.BrowserTest;
import net.sourceforge.jnlp.browsertesting.Browsers;
-import org.junit.Assert;
+import org.junit.Assert;
import org.junit.Test;
public class AppletReadsInvalidJarTests extends BrowserTest{
@@ -52,7 +53,7 @@ public class AppletReadsInvalidJarTests extends BrowserTest{
/*This SHOULD NOT execute the applet!*/
@Test
public void AppletJNLPTest() throws Exception {
- ServerAccess.ProcessResult pr = server.executeJavawsHeadless("/AppletReadsInvalidJar.jnlp");
+ ProcessResult pr = server.executeJavawsHeadless("/AppletReadsInvalidJar.jnlp");
Assert.assertFalse("AppletReadsInvalidJar stdout should NOT contain '" + CORRECT_EXECUTION + "', but did (applet should not have ran!).", pr.stdout.contains(CORRECT_EXECUTION));
Assert.assertTrue("AppletReadsInvalidJar stderr should contain 'ZipException', but did not.", pr.stderr.contains(JNLP_EXPECTED_EXCEPTION));
@@ -62,7 +63,7 @@ public class AppletReadsInvalidJarTests extends BrowserTest{
@Test
@TestInBrowsers(testIn={Browsers.one})
public void AppletInFirefoxTest() throws Exception {
- ServerAccess.ProcessResult pr = server.executeBrowser("/AppletReadsInvalidJar.html");
+ ProcessResult pr = server.executeBrowser("/AppletReadsInvalidJar.html");
Assert.assertTrue("AppletReadsInvalidJar stdout should contain '" + CORRECT_EXECUTION + "' but did not.", pr.stdout.contains(CORRECT_EXECUTION));
}