You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RpcInvocationHandlerToString.java 1.1KB

12345678910111213141516171819202122232425262728293031
  1. package com.vaadin.tests.components.ui;
  2. import com.vaadin.server.VaadinRequest;
  3. import com.vaadin.shared.ui.ui.PageClientRpc;
  4. import com.vaadin.tests.components.AbstractTestUIWithLog;
  5. public class RpcInvocationHandlerToString extends AbstractTestUIWithLog {
  6. PageClientRpc dummyProxy = getRpcProxy(PageClientRpc.class);
  7. @Override
  8. protected void setup(VaadinRequest request) {
  9. addButton("Exec toString() for an invocation proxy",
  10. event -> log("An invoation proxy: " + dummyProxy));
  11. addButton("Exec hashCode() for an invocation proxy", event -> log(
  12. "Invocation proxy.hashCode(): " + dummyProxy.hashCode()));
  13. addButton("Exec equals(false) for an invocation proxy", event -> log(
  14. "Invocation proxy.equals(false): " + dummyProxy.equals(false)));
  15. }
  16. @Override
  17. protected String getTestDescription() {
  18. 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";
  19. }
  20. @Override
  21. protected Integer getTicketNumber() {
  22. return 9802;
  23. }
  24. }