diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-11 14:55:03 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-14 10:59:47 +0200 |
commit | 25e4635d3537bbdf389301bceef5b122824e98af (patch) | |
tree | ed40b54888c3791ae3855e622f653775539f319b /qadevOOo/runner/helper | |
parent | 1714027ebe17fdce9a2cb46bf852886ea23a22ca (diff) |
clean upo runner.lib.TestParameters
- remove unused fields
- make all external code go through the get(XXX)
methods instead of also using the default values
- remove default values
declarations and inline them, since they are now unnecessary.
Change-Id: Idc875fbd133de90044647f3e3b1feb225d81a643
Diffstat (limited to 'qadevOOo/runner/helper')
-rw-r--r-- | qadevOOo/runner/helper/CfgParser.java | 4 | ||||
-rw-r--r-- | qadevOOo/runner/helper/UnoProvider.java | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/qadevOOo/runner/helper/CfgParser.java b/qadevOOo/runner/helper/CfgParser.java index 3ab2b6a28b52..263655f3aafd 100644 --- a/qadevOOo/runner/helper/CfgParser.java +++ b/qadevOOo/runner/helper/CfgParser.java @@ -46,7 +46,7 @@ public class CfgParser public void getIniParameters(TestParameters param) { - debug = param.DebugIsActive; + debug = param.getBool(PropertyName.DEBUG_IS_ACTIVE); Properties cfg = null; if (iniFile.equals("")) { @@ -94,7 +94,7 @@ public class CfgParser } } - debug = param.DebugIsActive; + debug = param.getBool(PropertyName.DEBUG_IS_ACTIVE); //check for platform dependent parameters //this would have a $OperatingSystem as prefix diff --git a/qadevOOo/runner/helper/UnoProvider.java b/qadevOOo/runner/helper/UnoProvider.java index 41873b4c95bc..3f6c743f97e6 100644 --- a/qadevOOo/runner/helper/UnoProvider.java +++ b/qadevOOo/runner/helper/UnoProvider.java @@ -130,7 +130,7 @@ public class UnoProvider implements AppProvider { "/" + unorcName; } unorcName = utils.getFullURL(unorcName); - if (param.DebugIsActive) { + if (param.getBool(PropertyName.DEBUG_IS_ACTIVE)) { System.out.println("UnoUcr: " + unorcName); } return unorcName; @@ -148,7 +148,7 @@ public class UnoProvider implements AppProvider { base.indexOf("program")+7); sysbindir = utils.getFullURL(sysbindir); - if (param.DebugIsActive) { + if (param.getBool(PropertyName.DEBUG_IS_ACTIVE)) { System.out.println("SysBinDir: " + sysbindir); } return sysbindir; |