public interface NextStreamResponseBuilderStep<BUILDER extends NextStreamResponseBuilderStep<BUILDER,ReqT,RespT>,ReqT,RespT> extends BuilderStep, MethodStubBuilder<ReqT,RespT>, NextSingleResponseBuilderStep<BUILDER,ReqT,RespT>
| Modifier and Type | Method and Description |
|---|---|
default BUILDER |
nextWillReturn(List<RespT> responses)
Defines a stream
Response for subsequent request call that will return multiple
response objects. |
default BUILDER |
nextWillReturn(RespT... responses)
Defines a stream
Response for subsequent request call that will return multiple
response objects. |
BUILDER |
nextWillReturn(StreamResponseBuilder<RespT> response)
Defines a stream
Response for subsequent request call that will execute multiple
ResponseAction. |
nextWillReturn, nextWillReturn, nextWillReturn, nextWillReturnbuildBUILDER nextWillReturn(@Nonnull StreamResponseBuilder<RespT> response)
Defines a stream Response for subsequent request call that will execute multiple
ResponseAction.
If there are more requests coming in to this stub than responses defined, the last stream response defined will be returned for those requests.
default BUILDER nextWillReturn(@Nonnull List<RespT> responses)
Defines a stream Response for subsequent request call that will return multiple
response objects.
In order to configure a Delay for the actions see GrpcMock.response(RespT) method.
If there are more requests coming in to this stub than responses defined, the last stream response defined will be returned for those requests.
responses - single response objects for the stream response. Will be returned in provided
list order.default BUILDER nextWillReturn(@Nonnull RespT... responses)
Defines a stream Response for subsequent request call that will return multiple
response objects.
In order to configure a Delay for the actions see GrpcMock.response(RespT) method.
If there are more requests coming in to this stub than responses defined, the last stream response defined will be returned for those requests.
responses - single response objects for the stream response. Will be returned in provided
array order.GrpcMock.response(RespT)Copyright © 2023. All rights reserved.