Interface NextStreamResponseBuilderStep<BUILDER extends NextStreamResponseBuilderStep<BUILDER,ReqT,RespT>,ReqT,RespT>
- All Superinterfaces:
BuilderStep,MethodStubBuilder<ReqT,,RespT> NextSingleResponseBuilderStep<BUILDER,ReqT, RespT>
- All Known Subinterfaces:
NextServerStreamingMethodResponseBuilderStep<ReqT,RespT>
- All Known Implementing Classes:
ServerStreamingMethodStubBuilderImpl
- Author:
- Fadelis
-
Method Summary
Modifier and TypeMethodDescriptiondefault BUILDERnextWillReturn(List<RespT> responses) Defines a streamResponsefor subsequent request call that will return multiple response objects.nextWillReturn(StreamResponseBuilder<RespT> response) Defines a streamResponsefor subsequent request call that will execute multipleResponseAction.default BUILDERnextWillReturn(RespT... responses) Defines a streamResponsefor subsequent request call that will return multiple response objects.Methods inherited from interface org.grpcmock.definitions.stub.steps.MethodStubBuilder
buildMethods inherited from interface org.grpcmock.definitions.stub.steps.NextSingleResponseBuilderStep
nextWillReturn, nextWillReturn, nextWillReturn, nextWillReturn
-
Method Details
-
nextWillReturn
Defines a stream
Responsefor subsequent request call that will execute multipleResponseAction.If there are more requests coming in to this stub than responses defined, the last stream response defined will be returned for those requests.
-
nextWillReturn
Defines a stream
Responsefor subsequent request call that will return multiple response objects.In order to configure a
Delayfor the actions seeGrpcMock.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.
- Parameters:
responses- single response objects for the stream response. Will be returned in provided list order.
-
nextWillReturn
Defines a stream
Responsefor subsequent request call that will return multiple response objects.In order to configure a
Delayfor the actions seeGrpcMock.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.
- Parameters:
responses- single response objects for the stream response. Will be returned in provided array order.- See Also:
-