aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/test/java/com/vaadin/tests/push/RefreshCloseConnectionTest.java
blob: 27641fc3558a400530ca05449ca5d53a2f903019 (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
package com.vaadin.tests.push;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import com.vaadin.testbench.parallel.TestCategory;
import com.vaadin.tests.tb3.MultiBrowserTest;

@TestCategory("push")
public class RefreshCloseConnectionTest extends MultiBrowserTest {

    @Test
    public void testSessionRefresh() {
        openTestURL("restartApplication");

        assertEquals("1. Init", getLogRow(0));

        openTestURL();

        assertEquals("2. Refresh", getLogRow(1));
        assertEquals("3. Push", getLogRow(0));
    }
}