aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/main/java/com/vaadin/tests/widgetset/server/gwtrpc/GwtRpc.java
blob: 2d0400cc521be9659592cd1a7c9477c383abf7d6 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package com.vaadin.tests.widgetset.server.gwtrpc;

import com.vaadin.annotations.Widgetset;
import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractReindeerTestUI;
import com.vaadin.tests.widgetset.TestingWidgetSet;

/**
 * Test the GWT RPC with Vaadin DevMode. See #11709.
 *
 * @author Vaadin Ltd
 */
@SuppressWarnings("serial")
@Widgetset(TestingWidgetSet.NAME)
public class GwtRpc extends AbstractReindeerTestUI {

    /**
     * Id of the button triggering the test case.
     */
    public static final String BUTTON_ID = "gwtRpcButton";

    @Override
    protected void setup(VaadinRequest request) {
        GwtRpcButton button = new GwtRpcButton();
        button.setId(BUTTON_ID);
        button.setCaption("Press me");

        addComponent(button);
    }

    @Override
    protected String getTestDescription() {
        return "Cannot call RPC in development mode";
    }

    @Override
    protected Integer getTicketNumber() {
        return 11709;
    }

}