12345678910111213141516171819202122232425262728293031 |
- package com.vaadin.tests.components.ui;
-
- import com.vaadin.server.VaadinRequest;
- import com.vaadin.shared.ui.ui.PageClientRpc;
- import com.vaadin.tests.components.AbstractTestUIWithLog;
-
- public class RpcInvocationHandlerToString extends AbstractTestUIWithLog {
-
- PageClientRpc dummyProxy = getRpcProxy(PageClientRpc.class);
-
- @Override
- protected void setup(VaadinRequest request) {
- addButton("Exec toString() for an invocation proxy",
- event -> log("An invoation proxy: " + dummyProxy));
- addButton("Exec hashCode() for an invocation proxy", event -> log(
- "Invocation proxy.hashCode(): " + dummyProxy.hashCode()));
- addButton("Exec equals(false) for an invocation proxy", event -> log(
- "Invocation proxy.equals(false): " + dummyProxy.equals(false)));
- }
-
- @Override
- protected String getTestDescription() {
- return "Clicking on the buttons invokes Object methods on a dummy proxy instance. They should only cause log rows to appear and no client rpc to be sent";
- }
-
- @Override
- protected Integer getTicketNumber() {
- return 9802;
- }
-
- }
|