Interface Mocker.WithMockedCall

Enclosing interface:
Mocker

public static interface Mocker.WithMockedCall
Mocks the Call/UI part of an call or UI element
Since:
9.2
API:
This is a public API.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Mocks the Call/UI part of the element with the given mocked call operator.
    void
    Mocks the Call/UI part of the element with no action.
  • Method Details

    • withNoAction

      void withNoAction()
      Mocks the Call/UI part of the element with no action. Parameters with same name and compatible type as result will be mapped automatically (e.g. results.name = parameters.name if both fields have compatible types)
      API:
      This public API is available in Java.
    • with

      void with(Mocker.MockedCall mock)
      Mocks the Call/UI part of the element with the given mocked call operator.
      Parameters:
      mock - mocked call operation that should be executed instead of the Call/UI part of the element.
      API:
      This public API is available in Java.