Class WillReceiveFunctionCall.Builder
- java.lang.Object
-
- io.contract_testing.contractcase.definitions.interactions.functions.WillReceiveFunctionCall.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<WillReceiveFunctionCall>
- Enclosing class:
- WillReceiveFunctionCall
@Stability(Stable) public static final class WillReceiveFunctionCall.Builder extends Object implements software.amazon.jsii.Builder<WillReceiveFunctionCall>
A fluent builder forWillReceiveFunctionCall.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WillReceiveFunctionCall.Builderarguments(List<? extends Object> arguments)An array of expected function arguments (or test equivalence matchers for those arguments).WillReceiveFunctionCallbuild()static WillReceiveFunctionCall.Buildercreate()WillReceiveFunctionCall.BuilderfunctionName(String functionName)The name of the function to be executed.WillReceiveFunctionCall.BuilderreturnValue(Object returnValue)A test equivalence matcher for the return value from this function.
-
-
-
Method Detail
-
create
@Stability(Stable) public static WillReceiveFunctionCall.Builder create()
- Returns:
- a new instance of
WillReceiveFunctionCall.Builder.
-
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
-
build
@Stability(Stable) public WillReceiveFunctionCall build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WillReceiveFunctionCall>- Returns:
- a newly built instance of
WillReceiveFunctionCall.
-
-