blob: 10a297d47be97af2717faef6452ad6e4fc0c4c21 (
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
|
package com.vaadin.tests.components.ui;
import org.junit.Assert;
import org.junit.Test;
import com.vaadin.testbench.elements.ButtonElement;
import com.vaadin.testbench.elements.NotificationElement;
import com.vaadin.tests.tb3.MultiBrowserTest;
public class RpcInvocationHandlerToStringTest extends MultiBrowserTest {
@Test
public void testMethodsOnInvocationProxy() throws Exception {
openTestURL();
execMethodForProxy("toString()");
execMethodForProxy("hashCode()");
execMethodForProxy("equals(false)");
}
private void execMethodForProxy(String method) {
$(ButtonElement.class)
.caption("Exec " + method + " for an invocation proxy").first()
.click();
Assert.assertFalse(method
+ " for invocation proxy caused a notification",
$(NotificationElement.class).exists());
}
}
|