diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-03-05 13:28:51 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-04-16 10:16:36 +0000 |
commit | 522c3dd8f3b64e772f7e41205308fc24a56426f4 (patch) | |
tree | 54b2f1fff6e253674c377120718a7c4ef6b1198d /uitest/src/com/vaadin/tests/components/ui/RpcInvocationHandlerToStringTest.java | |
parent | ab8a0268652b81b20be8d5dbf0deeb7029e9edec (diff) | |
download | vaadin-framework-522c3dd8f3b64e772f7e41205308fc24a56426f4.tar.gz vaadin-framework-522c3dd8f3b64e772f7e41205308fc24a56426f4.zip |
Convert some TB2 tests to TB4
- components/ui/CurrentUiRetainedTest
- components/ui/InitiallyEmptyFragmentTest
- components/ui/PollListeningTest
- components/ui/RpcInvocationHandlerToStringTest
- components/ui/UIAccessExceptionHandlingTest
- components/ui/UIInitBrowserDetailsTest
- components/ui/UIInitExceptionTest
- components/ui/UIPollingTest
- components/ui/UITabIndexTest
- components/ui/UIsInMultipleTabsTest
- components/window/CloseSubWindowTest
- components/window/ExtraWindowShownTest
- components/window/RepaintWindowContentsTest
- components/window/WindowShouldRemoveActionHandlerTest
- components/window/WindowWithInvalidCloseListenerTest
- containers/sqlcontainer/TableQueryWithNonUniqueFirstPrimaryKeyTest
- converter/ConverterThatEnforcesAFormatTest
- dd/DnDOnSubtreeTest
- fieldgroup/BasicPersonFormTest
- fieldgroup/CommitHandlerFailuresTest
- fieldgroup/CommitWithValidationOrConversionErrorTest
- fieldgroup/DateFormTest
- fieldgroup/FieldGroupDiscardTest
- fields/TabIndexesTest
renamed:
- components/ui/PollListenerTest -> PollListening
Change-Id: Iac3c153709f6edca28d9f75a85246f1a70176963
Diffstat (limited to 'uitest/src/com/vaadin/tests/components/ui/RpcInvocationHandlerToStringTest.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/ui/RpcInvocationHandlerToStringTest.java | 27 |
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()); + } +} |