aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/components/ui/RpcInvocationHandlerToStringTest.java
diff options
context:
space:
mode:
authorPekka Hyvönen <pekka@vaadin.com>2015-04-17 09:42:07 +0300
committerPekka Hyvönen <pekka@vaadin.com>2015-04-17 09:42:52 +0300
commit33c61533ad8a3ed8a38ea606aa9e3d5f4da4dae8 (patch)
tree3d4edf6b9676e0967b7a08e11642c66cf1abfe0c /uitest/src/com/vaadin/tests/components/ui/RpcInvocationHandlerToStringTest.java
parent6ed28680346c648a6b4e974568a56f6d4d0e000b (diff)
parent0636e2d177a933dae13e50eb1b1f4609855f735e (diff)
downloadvaadin-framework-33c61533ad8a3ed8a38ea606aa9e3d5f4da4dae8.tar.gz
vaadin-framework-33c61533ad8a3ed8a38ea606aa9e3d5f4da4dae8.zip
Merge branch 'master' into grid-7.5
Change-Id: I6175398df4c3a07656a2682843615a0d7bd32a45
Diffstat (limited to 'uitest/src/com/vaadin/tests/components/ui/RpcInvocationHandlerToStringTest.java')
-rw-r--r--uitest/src/com/vaadin/tests/components/ui/RpcInvocationHandlerToStringTest.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/ui/RpcInvocationHandlerToStringTest.java b/uitest/src/com/vaadin/tests/components/ui/RpcInvocationHandlerToStringTest.java
new file mode 100644
index 0000000000..10a297d47b
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/components/ui/RpcInvocationHandlerToStringTest.java
@@ -0,0 +1,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());
+ }
+}