summaryrefslogtreecommitdiff
path: root/unotest
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-22 10:02:49 +0200
committerNoel Grandin <noel@peralex.com>2015-01-12 08:36:17 +0200
commit09330056a01a4b5c3d16e3ffb6c1bff36099eb83 (patch)
treeefa793bee83eed4081edd52737e73216a3048b89 /unotest
parent4bf4e3d40778051f1f886c47dd2b2bef82acf1e5 (diff)
java: simplify sleeping and waiting in tests
- remove the SHORT_WAIT test parameter, no-one is using it - inline the various independent shortWait() methods - use the util.utils.shortWait() utility method everywhere Change-Id: I93cd4a2580172a1441d2ff3d390f52b9505e2721
Diffstat (limited to 'unotest')
-rw-r--r--unotest/source/java/org/openoffice/test/OfficeConnection.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/unotest/source/java/org/openoffice/test/OfficeConnection.java b/unotest/source/java/org/openoffice/test/OfficeConnection.java
index 6cc00d199f24..6a6d15bf4e7f 100644
--- a/unotest/source/java/org/openoffice/test/OfficeConnection.java
+++ b/unotest/source/java/org/openoffice/test/OfficeConnection.java
@@ -196,16 +196,14 @@ public final class OfficeConnection {
return description;
}
- private static Integer waitForProcess(Process process, final long millis)
+ private static Integer waitForProcess(Process process, final int millis)
throws InterruptedException
{
final Thread t1 = Thread.currentThread();
Thread t2 = new Thread("waitForProcess") {
@Override
public void run() {
- try {
- Thread.sleep(millis);
- } catch (InterruptedException e) {}
+ util.utils.pause(millis);
t1.interrupt();
}
};