aboutsummaryrefslogtreecommitdiffstats
path: root/tests/reproducers/simple/deadlocktest/testcases/DeadLockTestTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/reproducers/simple/deadlocktest/testcases/DeadLockTestTest.java')
-rw-r--r--tests/reproducers/simple/deadlocktest/testcases/DeadLockTestTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/reproducers/simple/deadlocktest/testcases/DeadLockTestTest.java b/tests/reproducers/simple/deadlocktest/testcases/DeadLockTestTest.java
index e753819..b3445d6 100644
--- a/tests/reproducers/simple/deadlocktest/testcases/DeadLockTestTest.java
+++ b/tests/reproducers/simple/deadlocktest/testcases/DeadLockTestTest.java
@@ -36,8 +36,8 @@ exception statement from your version.
*/
import java.util.ArrayList;
+import net.sourceforge.jnlp.ProcessResult;
import net.sourceforge.jnlp.ServerAccess;
-import net.sourceforge.jnlp.ServerAccess.ProcessResult;
import org.junit.Assert;
import java.util.Arrays;
import java.util.List;
@@ -80,7 +80,7 @@ public class DeadLockTestTest {
public void testDeadLockTestTerminatedBody(String jnlp) throws Exception {
List<String> before = countJavaInstances();
ServerAccess.logOutputReprint("java1 " + jnlp + " : " + before.size());
- ServerAccess.ProcessResult pr = server.executeJavawsHeadless(null, jnlp);
+ ProcessResult pr = server.executeJavawsHeadless(null, jnlp);
assertDeadlockTestLaunched(pr);
List<String> after = countJavaInstances();
ServerAccess.logOutputReprint("java2 " + jnlp + " : " + after.size());
@@ -167,7 +167,7 @@ public class DeadLockTestTest {
ServerAccess.logOutputReprint("Killing " + string);
ServerAccess.PROCESS_LOG = false;
try {
- ServerAccess.ProcessResult pr = ServerAccess.executeProcess(Arrays.asList(new String[]{"kill", "-9", string}));
+ ProcessResult pr = ServerAccess.executeProcess(Arrays.asList(new String[]{"kill", "-9", string}));
} finally {
ServerAccess.PROCESS_LOG = true;
}
@@ -182,7 +182,7 @@ public class DeadLockTestTest {
List<String> result = new ArrayList<String>();
ServerAccess.PROCESS_LOG = false;
try {
- ServerAccess.ProcessResult pr = ServerAccess.executeProcess(Arrays.asList(new String[]{"ps", "-eo", "pid,ppid,stat,fname"}));
+ ProcessResult pr = ServerAccess.executeProcess(Arrays.asList(new String[]{"ps", "-eo", "pid,ppid,stat,fname"}));
Matcher m = Pattern.compile("\\s*\\d+\\s+\\d+ .+ java\\s*").matcher(pr.stdout);
int i = 0;
while (m.find()) {