Interface HasRpcSupport

All Superinterfaces:
com.vaadin.testbench.HasDriver

public interface HasRpcSupport extends com.vaadin.testbench.HasDriver
Provides support for Remote Procedure Calls (RPC) using TestBench.
Author:
Javier Godoy / Flowing Code
  • Method Summary

    Modifier and Type
    Method
    Description
    default Object
    call(String callable, Object... arguments)
    Deprecated.
    default <T> T
    Create a TestBench proxy that invokes methods from the interface through a client call.
    default <T> T
    Create a TestBench proxy that invokes methods from the interface through a client call on a side channel.
    default void
    setScriptTimeout(long timeoutMillis)
    Sets the amount of time to wait for an asynchronous script to finish execution before throwing an error.

    Methods inherited from interface com.vaadin.testbench.HasDriver

    getDriver
  • Method Details

    • setScriptTimeout

      default void setScriptTimeout(long timeoutMillis)
      Sets the amount of time to wait for an asynchronous script to finish execution before throwing an error. If the timeout is negative, then the script will be allowed to run indefinitely.
      Parameters:
      timeoutMillis - The timeout value in milliseconds.
    • createCallableProxy

      default <T> T createCallableProxy(Class<T> intf)
      Create a TestBench proxy that invokes methods from the interface through a client call.
    • createCallableProxy

      default <T> T createCallableProxy(Class<T> intf, String url)
      Create a TestBench proxy that invokes methods from the interface through a client call on a side channel.
    • call

      @Deprecated default Object call(String callable, Object... arguments)
      Deprecated.