summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tb3/PrivateTB3Configuration.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/tb3/PrivateTB3Configuration.java')
-rw-r--r--uitest/src/com/vaadin/tests/tb3/PrivateTB3Configuration.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/uitest/src/com/vaadin/tests/tb3/PrivateTB3Configuration.java b/uitest/src/com/vaadin/tests/tb3/PrivateTB3Configuration.java
index a2922af28f..caa35732d6 100644
--- a/uitest/src/com/vaadin/tests/tb3/PrivateTB3Configuration.java
+++ b/uitest/src/com/vaadin/tests/tb3/PrivateTB3Configuration.java
@@ -90,11 +90,12 @@ public abstract class PrivateTB3Configuration extends ScreenshotTB3Test {
}
@Override
- protected String getDeploymentPort() {
- String port = getProperty(PORT_PROPERTY);
+ protected int getDeploymentPort() {
+ String portString = getProperty(PORT_PROPERTY);
- if (port == null || "".equals(port)) {
- port = "8888";
+ int port = 8888;
+ if (portString != null && !"".equals(portString)) {
+ port = Integer.parseInt(portString);
}
return port;