Interface StreamResponseBuilderStep<BUILDER extends BuilderStep,ReqT,RespT>
- All Superinterfaces:
BuilderStep,SingleResponseBuilderStep<BUILDER,RespT>
- All Known Subinterfaces:
ServerStreamingMethodStubBuilderStep<ReqT,RespT>
- All Known Implementing Classes:
ServerStreamingMethodStubBuilderImpl
public interface StreamResponseBuilderStep<BUILDER extends BuilderStep,ReqT,RespT>
extends BuilderStep, SingleResponseBuilderStep<BUILDER,RespT>
- Author:
- Fadelis
-
Method Summary
Modifier and TypeMethodDescriptiondefault BUILDERwillReturn(List<RespT> responses) Defines a streamResponse, which can respond with multipleResponseAction.willReturn(StreamResponseBuilder<RespT> response) Defines a streamResponsethat will execute multipleResponseAction.default BUILDERwillReturn(RespT... responses) Defines a streamResponse, which can respond with multipleResponseAction.Methods inherited from interface org.grpcmock.definitions.stub.steps.SingleResponseBuilderStep
willReturn, willReturn, willReturn, willReturn
-
Method Details
-
willReturn
Defines a streamResponsethat will execute multipleResponseAction. -
willReturn
Defines a stream
Response, which can respond with multipleResponseAction.In order to configure a
Delayfor the actions seeGrpcMock.response(RespT)method.- Parameters:
responses- single response objects for the stream response. Will be returned in provided array order.
-
willReturn
Defines a stream
Response, which can respond with multipleResponseAction.In order to configure a
Delayfor the actions seeGrpcMock.response(RespT)method.- Parameters:
responses- single response objects for the stream response. Will be returned in provided array order.
-