aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test-extensions-tests
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/test-extensions-tests
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/test-extensions-tests')
-rw-r--r--tests/test-extensions-tests/net/sourceforge/jnlp/ResourcesTest.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/test-extensions-tests/net/sourceforge/jnlp/ResourcesTest.java b/tests/test-extensions-tests/net/sourceforge/jnlp/ResourcesTest.java
index 8d4e8d6..9039ed7 100644
--- a/tests/test-extensions-tests/net/sourceforge/jnlp/ResourcesTest.java
+++ b/tests/test-extensions-tests/net/sourceforge/jnlp/ResourcesTest.java
@@ -64,26 +64,26 @@ public class ResourcesTest extends BrowserTest{
@NeedsDisplay
public void testNonExisitngBrowserWillNotDeadlock() throws Exception {
server.setCurrentBrowser(Browsers.none);
- ServerAccess.ProcessResult pr = server.executeBrowser("not_existing_url.html");
+ ProcessResult pr = server.executeBrowser("not_existing_url.html");
Assert.assertNull(pr.process);
Assert.assertEquals(pr.stderr, "");
Assert.assertEquals(pr.stdout, "");
Assert.assertTrue(pr.wasTerminated);
Assert.assertTrue(pr.returnValue < 0);
- junit.framework.Assert.assertNotNull(pr.deadlyException);
+ Assert.assertNotNull(pr.deadlyException);
}
@Test
public void testUnexistingProcessWillFailRecognizedly() throws Exception {
server.setCurrentBrowser(Browsers.none);
List<String> al=Arrays.asList(new String[] {"definietly_not_Existing_process"});
- ServerAccess.ProcessResult pr = server.executeProcess(al);
+ ProcessResult pr = server.executeProcess(al);
Assert.assertNull(pr.process);
Assert.assertEquals(pr.stderr, "");
Assert.assertEquals(pr.stdout, "");
Assert.assertTrue(pr.wasTerminated);
Assert.assertTrue(pr.returnValue < 0);
- junit.framework.Assert.assertNotNull(pr.deadlyException);
+ Assert.assertNotNull(pr.deadlyException);
}
@Test
@@ -96,13 +96,13 @@ public class ResourcesTest extends BrowserTest{
@Test
@TestInBrowsers(testIn=Browsers.none)
public void testNonExisitngBrowserWillNotCauseMess() throws Exception {
- ServerAccess.ProcessResult pr = server.executeBrowser("not_existing_url.html");
+ ProcessResult pr = server.executeBrowser("not_existing_url.html");
Assert.assertNull(pr.process);
Assert.assertEquals(pr.stderr, "");
Assert.assertEquals(pr.stdout, "");
Assert.assertTrue(pr.wasTerminated);
Assert.assertTrue(pr.returnValue < 0);
- junit.framework.Assert.assertNotNull(pr.deadlyException);
+ Assert.assertNotNull(pr.deadlyException);
}
@Test
@@ -288,7 +288,7 @@ public class ResourcesTest extends BrowserTest{
e2.append(s).append("\n");
}
};
- ServerAccess.ProcessResult pr = server.executeBrowser("not_existing_url.html",lo,le);
+ ProcessResult pr = server.executeBrowser("not_existing_url.html",lo,le);
server.setCurrentBrowser(BrowserFactory.getFactory().getFirst().getID());
Assert.assertNotNull(server.getCurrentBrowsers());
Assert.assertNotNull(server.getCurrentBrowser());