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