method
Creates a RequestSpecification
with the specified HTTP method and additional configuration defined by the given block, and returns a new BuildingStep
instance for further customization.
@param name An optional name assigned to the Stub for identification or debugging purposes.
Return
A BuildingStep instance initialized with the generated request specification.
Parameters
The HttpMethod
to match for the request specification.
The class type of the request body.
A lambda used to configure the RequestSpecificationBuilder
.
Creates a building step for a stub configuration with the specified parameters.
Return
A BuildingStep instance configured with the provided parameters.
Parameters
An optional name for the stub configuration.
The HTTP method associated with the request.
The class type of the request payload.
A block for specifying request details using a RequestSpecificationBuilder.