public interface NextSingleResponseBuilderStep<BUILDER extends NextSingleResponseBuilderStep<BUILDER,ReqT,RespT>,ReqT,RespT> extends BuilderStep, MethodStubBuilder<ReqT,RespT>
| Modifier and Type | Method and Description |
|---|---|
BUILDER |
nextWillReturn(ExceptionResponseActionBuilder response)
Defines a exception
Response for subsequent request call to this stub. |
BUILDER |
nextWillReturn(ObjectResponseActionBuilder<RespT> response)
Defines a single
Response for subsequent request call to this stub. |
default BUILDER |
nextWillReturn(RespT response)
Defines a single
Response for subsequent request call to this stub. |
default BUILDER |
nextWillReturn(io.grpc.Status status)
Defines a exception
Response for subsequent request call to this stub. |
buildBUILDER nextWillReturn(@Nonnull ObjectResponseActionBuilder<RespT> response)
Defines a single Response for subsequent request call to this stub.
If there are more requests coming in to this stub than responses defined, the last response defined will be returned for those requests.
BUILDER nextWillReturn(@Nonnull ExceptionResponseActionBuilder response)
Defines a exception Response for subsequent request call to this stub.
If there are more requests coming in to this stub than responses defined, the last response defined will be returned for those requests.
default BUILDER nextWillReturn(@Nonnull RespT response)
Defines a single Response for subsequent request call to this stub.
In order to configure a Delay for the response see GrpcMock.response(RespT)
method.
If there are more requests coming in to this stub than responses defined, the last response defined will be returned for those requests.
default BUILDER nextWillReturn(@Nonnull io.grpc.Status status)
Defines a exception Response for subsequent request call to this stub.
In order to configure a Delay for the response see GrpcMock.statusException(io.grpc.Status)
method.
If there are more requests coming in to this stub than responses defined, the last response defined will be returned for those requests.
Copyright © 2023. All rights reserved.