
public class DroidiumNativeConfiguration extends Object
| Constructor and Description |
|---|
DroidiumNativeConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
String |
getProperty(String name,
String defaultValue)
Gets value of
name property. |
File |
getServerApk() |
void |
setProperties(Map<String,String> properties)
Sets properties as configuration.
|
void |
setProperty(String property,
String value)
Sets
property to value. |
void |
validate()
Validates configuration of Arquillian Droidium native plugin.
|
public File getServerApk()
public void setProperties(Map<String,String> properties) throws IllegalArgumentException
properties - properties to setIllegalArgumentException - if properties is a null objectpublic String getProperty(String name, String defaultValue) throws IllegalStateException
name property. In case a value for such name does not exist or is null or empty string,
defaultValue is returned.name - name of property you want to get a value ofdefaultValue - value returned in case name is a null string or it is emptyname propertyIllegalArgumentException - if either arguments are null or empty stringsIllegalStateExceptionpublic void setProperty(String property, String value) throws IllegalStateException
property to value.property - property to setvalue - value of propertyIllegalArgumentException - if either arguments are null or empty stringsIllegalStateExceptionpublic void validate()
throws IllegalArgumentException,
IllegalStateException
IllegalArgumentException - if getServerApk() is not readable or if getTmpDir() is not readable
directory of if getTmpDir() is not writable of if getAlias(),getKeypass() or
getStorepass() is either null or empty string.IllegalStateException - if it is impossible to create new file as getLogFile().Copyright © 2014 JBoss by Red Hat. All rights reserved.