summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/components/AbstractTestUI.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2014-04-02 22:15:46 +0300
committerJohannes Dahlström <johannesd@vaadin.com>2014-04-04 14:54:29 +0000
commit251de08a63f2c9fd5d398736e0a7c40da09ce85b (patch)
treecf85221ea1f6a98f8e8b8458ee28bdc1285c2cec /uitest/src/com/vaadin/tests/components/AbstractTestUI.java
parentba1e86acd447ca857d2c6ce68b1fcc9215fd61b7 (diff)
downloadvaadin-framework-251de08a63f2c9fd5d398736e0a7c40da09ce85b.tar.gz
vaadin-framework-251de08a63f2c9fd5d398736e0a7c40da09ce85b.zip
Throw an exception if you misspell transport
Change-Id: I3d12dbd4d8c1789e56cd9172f5fdd3522e89ae79
Diffstat (limited to 'uitest/src/com/vaadin/tests/components/AbstractTestUI.java')
-rw-r--r--uitest/src/com/vaadin/tests/components/AbstractTestUI.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/AbstractTestUI.java b/uitest/src/com/vaadin/tests/components/AbstractTestUI.java
index fe69779b4b..d7fb7d03fb 100644
--- a/uitest/src/com/vaadin/tests/components/AbstractTestUI.java
+++ b/uitest/src/com/vaadin/tests/components/AbstractTestUI.java
@@ -122,6 +122,10 @@ public abstract class AbstractTestUI extends UI {
enablePush(Transport.STREAMING);
} else if ("long-polling".equals(transport)) {
enablePush(Transport.LONG_POLLING);
+ } else if (transport != null) {
+ throw new IllegalArgumentException("Unknown transport value '"
+ + transport
+ + "'. Supported are xhr,websocket,streaming,long-polling");
}
}