From e5566429bf0dfb7e9a85148a152cee0445bd40f9 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Mon, 16 Sep 2013 14:37:20 +0300 Subject: Converted servlet integration tests to TB3 (#12573) Change-Id: I964be2ef805875f36a2f0f8139feaa353c9aaee0 --- .../integration/IntegrationTestWebsocket.java | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 uitest/src/com/vaadin/tests/integration/IntegrationTestWebsocket.java (limited to 'uitest/src/com/vaadin/tests/integration/IntegrationTestWebsocket.java') diff --git a/uitest/src/com/vaadin/tests/integration/IntegrationTestWebsocket.java b/uitest/src/com/vaadin/tests/integration/IntegrationTestWebsocket.java new file mode 100644 index 0000000000..eaa23de3cf --- /dev/null +++ b/uitest/src/com/vaadin/tests/integration/IntegrationTestWebsocket.java @@ -0,0 +1,49 @@ +/* + * 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.integration; + +import com.vaadin.annotations.Push; +import com.vaadin.server.VaadinRequest; +import com.vaadin.shared.ui.ui.Transport; + +/** + * Server test which uses websockets + * + * @since 7.1 + * @author Vaadin Ltd + */ +@Push(transport = Transport.WEBSOCKET) +public class IntegrationTestWebsocket extends IntegrationTestUI { + + public class IntegrationTestWebsocketTB3 extends ServletIntegrationTestTB3 { + // Uses the test method declared in the super class + } + + /* + * (non-Javadoc) + * + * @see + * com.vaadin.tests.integration.IntegrationTestUI#init(com.vaadin.server + * .VaadinRequest) + */ + @Override + protected void init(VaadinRequest request) { + super.init(request); + // Ensure no fallback is used + getPushConfiguration().setFallbackTransport(Transport.WEBSOCKET); + } + +} -- cgit v1.2.3