blob: 93c69404265756b9610724059b5438d5a7936533 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package com.vaadin.tests.push;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.MatcherAssert.assertThat;
import org.junit.Test;
public class PushConfigurationStreamingTest extends PushConfigurationTest {
@Test
public void testStreaming() throws InterruptedException {
openDebugLogTab();
getTransportSelect().selectByText("Streaming");
assertThat(getStatusText(),
containsString("fallbackTransport: long-polling"));
assertThat(getStatusText(), containsString("transport: streaming"));
clearDebugMessages();
getPushModeSelect().selectByText("Automatic");
waitForDebugMessage("Push connection established using streaming", 10);
waitForServerCounterToUpdate();
}
}
|