]> source.dussan.org Git - vaadin-framework.git/commitdiff
Throw an exception if you misspell transport
authorArtur Signell <artur@vaadin.com>
Wed, 2 Apr 2014 19:15:46 +0000 (22:15 +0300)
committerJohannes Dahlström <johannesd@vaadin.com>
Fri, 4 Apr 2014 14:54:29 +0000 (14:54 +0000)
Change-Id: I3d12dbd4d8c1789e56cd9172f5fdd3522e89ae79

uitest/src/com/vaadin/tests/components/AbstractTestUI.java

index fe69779b4b8a6578161a1761cee20fc0b5f4d343..d7fb7d03fb436124fd2d5f72498dbf1358451fd3 100644 (file)
@@ -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");
         }
     }