summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-22 10:27:15 +0200
committerNoel Grandin <noel@peralex.com>2015-01-13 08:42:55 +0200
commitc55f945e4b092a7c972e6f64260ba98784c85a77 (patch)
tree2e83e6b8ebbe532e9217df8bfa80aa5e4634f168 /framework
parentb82cc80e8405086856a795a17e655cdcf85020fc (diff)
java: move DEFAULT_SHORT_WAIT_MS to util.utils
so I can turn PopertyNames into an enum Change-Id: I939a83c0962813302a3653e75976147b2300cb18
Diffstat (limited to 'framework')
-rw-r--r--framework/qa/complex/framework/recovery/RecoveryTest.java4
-rw-r--r--framework/qa/complex/framework/recovery/RecoveryTools.java6
2 files changed, 5 insertions, 5 deletions
diff --git a/framework/qa/complex/framework/recovery/RecoveryTest.java b/framework/qa/complex/framework/recovery/RecoveryTest.java
index 42f61c331fe2..6bf108ca36f3 100644
--- a/framework/qa/complex/framework/recovery/RecoveryTest.java
+++ b/framework/qa/complex/framework/recovery/RecoveryTest.java
@@ -221,7 +221,7 @@ public class RecoveryTest extends ComplexTestCase {
log.println("wating for recovery dialog...");
int counter = 0;
- int maximum = param.getInt(PropertyName.THREAD_TIME_OUT) / PropertyName.DEFAULT_SHORT_WAIT_MS;
+ int maximum = param.getInt(PropertyName.THREAD_TIME_OUT) / utils.DEFAULT_SHORT_WAIT_MS;
XDialog oDialog = rt.getActiveDialog(xMSF);
@@ -352,7 +352,7 @@ public class RecoveryTest extends ComplexTestCase {
util.utils.shortWait();
int counter = 0;
- int maximum = param.getInt(PropertyName.THREAD_TIME_OUT) / PropertyName.DEFAULT_SHORT_WAIT_MS;
+ int maximum = param.getInt(PropertyName.THREAD_TIME_OUT) / utils.DEFAULT_SHORT_WAIT_MS;
XAccessibleContext oButton = null;
while ((oButton == null) && (counter < maximum)){
diff --git a/framework/qa/complex/framework/recovery/RecoveryTools.java b/framework/qa/complex/framework/recovery/RecoveryTools.java
index 70374518f6ce..b199bcecc5b6 100644
--- a/framework/qa/complex/framework/recovery/RecoveryTools.java
+++ b/framework/qa/complex/framework/recovery/RecoveryTools.java
@@ -93,7 +93,7 @@ public class RecoveryTools {
// This could consumes more time then the TimeOut allow.
int counter = 0;
int multi = 5;
- int pause = PropertyName.DEFAULT_SHORT_WAIT_MS * 10;
+ int pause = utils.DEFAULT_SHORT_WAIT_MS * 10;
int timeOut = param.getInt(PropertyName.THREAD_TIME_OUT)*5;
int maximum = (timeOut / pause) * multi;
@@ -184,7 +184,7 @@ public class RecoveryTools {
helper.ProcessHandler ph = (helper.ProcessHandler) param.get("AppProvider");
int timeOut = param.getInt(PropertyName.THREAD_TIME_OUT)*5;
- int pause = PropertyName.DEFAULT_SHORT_WAIT_MS * 20;
+ int pause = utils.DEFAULT_SHORT_WAIT_MS * 20;
int multi = 0;
while ((ph != null) && (ph.getExitCode()<0) && (pause*multi < timeOut)) {
log.println("waiting until the office is closed... remaining " + (timeOut - pause * multi)/1000 + " seconds");
@@ -257,7 +257,7 @@ public class RecoveryTools {
{
KlickButtonThread kbt = new KlickButtonThread(xWindow, buttonName);
kbt.start();
- util.utils.pause(PropertyName.DEFAULT_SHORT_WAIT_MS * 10);
+ util.utils.pause(utils.DEFAULT_SHORT_WAIT_MS * 10);
}
public void copyRecoveryData(boolean backup)