File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/main/java/aquality/appium/mobile/configuration/driversettings Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 12
12
13
13
abstract class DriverSettings implements IDriverSettings {
14
14
15
- private static final String appPathKey = "applicationPath" ;
16
- private static final String appCapabilityKey = "app" ;
15
+ private static final String APPLICATION_PATH_KEY = "applicationPath" ;
16
+ private static final String APP_CAPABILITY_KEY = "app" ;
17
17
private final ISettingsFile settingsFile ;
18
18
19
19
DriverSettings (ISettingsFile settingsFile ) {
@@ -26,7 +26,7 @@ public Capabilities getCapabilities() {
26
26
DesiredCapabilities capabilities = new DesiredCapabilities ();
27
27
capabilitiesFromSettings .forEach (capabilities ::setCapability );
28
28
if (hasApplicationPath ()) {
29
- capabilities .setCapability (appCapabilityKey , getAbsolutePath (getApplicationPath ()));
29
+ capabilities .setCapability (APP_CAPABILITY_KEY , getAbsolutePath (getApplicationPath ()));
30
30
}
31
31
return capabilities ;
32
32
}
@@ -47,12 +47,12 @@ private String getAbsolutePath(String relativePath) {
47
47
}
48
48
49
49
private boolean hasApplicationPath () {
50
- return settingsFile .getMap (getDriverSettingsPath ()).containsKey (appPathKey );
50
+ return settingsFile .getMap (getDriverSettingsPath ()).containsKey (APPLICATION_PATH_KEY );
51
51
}
52
52
53
53
@ Override
54
54
public String getApplicationPath () {
55
- return String .valueOf (settingsFile .getValue (getDriverSettingsPath () + "/" + appPathKey ));
55
+ return String .valueOf (settingsFile .getValue (getDriverSettingsPath () + "/" + APPLICATION_PATH_KEY ));
56
56
}
57
57
58
58
private String getDriverCapabilitiesJsonPath (){
You can’t perform that action at this time.
0 commit comments