
public class InstrumentationConfiguration extends Object
@Instrumentable annotation placed on @Deployment method.| Constructor and Description |
|---|
InstrumentationConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getPort() |
int |
hashCode() |
static boolean |
isValidPortNumber(int port)
Checks if
port is in a valid format - it is between 1024 and 65535 including. |
void |
setPort(int port) |
void |
setPort(String port) |
void |
validate()
Validates configuration, checking if port is set.
|
public void setPort(int port)
throws InvalidInstrumentationConfigurationException
port - port via which the instrumentation will occur, port has to be set in the range 1024 - 65535InvalidInstrumentationConfigurationException - when port is invalidpublic void setPort(String port) throws InvalidInstrumentationConfigurationException
port - port Selendroid server will be hooked to on the side of Android device. It has to be a number between 1024
and 65535.InvalidInstrumentationConfigurationException - when port is invalidpublic String getPort()
public void validate()
public static boolean isValidPortNumber(int port)
port is in a valid format - it is between 1024 and 65535 including.port - port to check the validity ofport is valid, false otherwiseCopyright © 2013 JBoss by Red Hat. All rights reserved.