diff options
author | Artur Signell <artur@vaadin.com> | 2013-10-31 12:39:12 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-10-31 15:57:07 +0000 |
commit | 7b120fc196a0517c95a5d8f93c4b72c5b9a72a0b (patch) | |
tree | d10286eadfb04917a1b9d209a86497088d88df09 /uitest/src/com/vaadin/tests/tb3/PrivateTB3Configuration.java | |
parent | 137642958a62dfc081e2b7242318f8ce4ef59304 (diff) | |
download | vaadin-framework-7b120fc196a0517c95a5d8f93c4b72c5b9a72a0b.tar.gz vaadin-framework-7b120fc196a0517c95a5d8f93c4b72c5b9a72a0b.zip |
Tests for validating reconnect works for streaming and websockets (#12868,#12853,#12852)
Change-Id: I0e1e51291e9275a78737ad0e70e63b75ef993a63
Diffstat (limited to 'uitest/src/com/vaadin/tests/tb3/PrivateTB3Configuration.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/tb3/PrivateTB3Configuration.java | 9 |
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; |