diff options
author | Artur Signell <artur@vaadin.com> | 2014-04-02 22:15:46 +0300 |
---|---|---|
committer | Johannes Dahlström <johannesd@vaadin.com> | 2014-04-04 14:54:29 +0000 |
commit | 251de08a63f2c9fd5d398736e0a7c40da09ce85b (patch) | |
tree | cf85221ea1f6a98f8e8b8458ee28bdc1285c2cec /uitest/src/com/vaadin/tests/components/AbstractTestUI.java | |
parent | ba1e86acd447ca857d2c6ce68b1fcc9215fd61b7 (diff) | |
download | vaadin-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.java | 4 |
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"); } } |