Class WillReceiveFunctionCall.Builder

    • Method Detail

      • arguments

        @Stability(Stable)
        public WillReceiveFunctionCall.Builder arguments​(List<? extends Object> arguments)
        An array of expected function arguments (or test equivalence matchers for those arguments).

        Parameters:
        arguments - An array of expected function arguments (or test equivalence matchers for those arguments). This parameter is required.
        Returns:
        this
      • functionName

        @Stability(Stable)
        public WillReceiveFunctionCall.Builder functionName​(String functionName)
        The name of the function to be executed.

        Doubles as the handle used by registerFunction.

        Parameters:
        functionName - The name of the function to be executed. This parameter is required.
        Returns:
        this
      • returnValue

        @Stability(Stable)
        public WillReceiveFunctionCall.Builder returnValue​(Object returnValue)
        A test equivalence matcher for the return value from this function.

        Parameters:
        returnValue - A test equivalence matcher for the return value from this function. This parameter is required.
        Returns:
        this