From 251de08a63f2c9fd5d398736e0a7c40da09ce85b Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Wed, 2 Apr 2014 22:15:46 +0300 Subject: [PATCH] Throw an exception if you misspell transport Change-Id: I3d12dbd4d8c1789e56cd9172f5fdd3522e89ae79 --- uitest/src/com/vaadin/tests/components/AbstractTestUI.java | 4 ++++ 1 file changed, 4 insertions(+) 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"); } } -- 2.39.5