diff options
author | Artur Signell <artur@vaadin.com> | 2013-09-13 09:18:47 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-10-16 11:48:05 +0000 |
commit | f40159533028f28a1fe967daad4089fb3a35c53b (patch) | |
tree | e5c07f02ec0b37637ea670de80b4a05a25810ee7 /uitest/src/com/vaadin/tests/push/PushLargeDataWebsocket.java | |
parent | 6155d61cda45c1b0370ead08a0d3c97539590059 (diff) | |
download | vaadin-framework-f40159533028f28a1fe967daad4089fb3a35c53b.tar.gz vaadin-framework-f40159533028f28a1fe967daad4089fb3a35c53b.zip |
Test for pushing large chunks of data (#12567)
Change-Id: I846b8417f69a0dca7cda2c3851148896d22cabcc
Diffstat (limited to 'uitest/src/com/vaadin/tests/push/PushLargeDataWebsocket.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/push/PushLargeDataWebsocket.java | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/push/PushLargeDataWebsocket.java b/uitest/src/com/vaadin/tests/push/PushLargeDataWebsocket.java new file mode 100644 index 0000000000..974dc880f9 --- /dev/null +++ b/uitest/src/com/vaadin/tests/push/PushLargeDataWebsocket.java @@ -0,0 +1,32 @@ +/* + * Copyright 2000-2013 Vaadin Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ + +package com.vaadin.tests.push; + +import com.vaadin.annotations.Push; +import com.vaadin.server.VaadinRequest; +import com.vaadin.shared.ui.ui.Transport; + +@Push +public class PushLargeDataWebsocket extends PushLargeData { + + @Override + protected void setup(VaadinRequest request) { + super.setup(request); + getPushConfiguration().setTransport(Transport.WEBSOCKET); + getPushConfiguration().setFallbackTransport(Transport.WEBSOCKET); + } +} |