Interface NextSingleResponseBuilderStep<BUILDER extends NextSingleResponseBuilderStep<BUILDER,ReqT,RespT>,ReqT,RespT>
- All Superinterfaces:
BuilderStep,MethodStubBuilder<ReqT,RespT>
- All Known Subinterfaces:
NextClientStreamingMethodResponseBuilderStep<ReqT,,RespT> NextServerStreamingMethodResponseBuilderStep<ReqT,,RespT> NextStreamResponseBuilderStep<BUILDER,,ReqT, RespT> NextUnaryMethodResponseBuilderStep<ReqT,RespT>
- All Known Implementing Classes:
ClientStreamingMethodStubBuilderImpl,ServerStreamingMethodStubBuilderImpl,UnaryMethodStubBuilderImpl
- Author:
- Fadelis
-
Method Summary
Modifier and TypeMethodDescriptiondefault BUILDERnextWillReturn(io.grpc.Status status) Defines a exceptionResponsefor subsequent request call to this stub.nextWillReturn(ExceptionResponseActionBuilder response) Defines a exceptionResponsefor subsequent request call to this stub.nextWillReturn(ObjectResponseActionBuilder<RespT> response) Defines a singleResponsefor subsequent request call to this stub.default BUILDERnextWillReturn(RespT response) Defines a singleResponsefor subsequent request call to this stub.Methods inherited from interface org.grpcmock.definitions.stub.steps.MethodStubBuilder
build
-
Method Details
-
nextWillReturn
Defines a single
Responsefor 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.
-
nextWillReturn
Defines a exception
Responsefor 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.
-
nextWillReturn
Defines a single
Responsefor subsequent request call to this stub.In order to configure a
Delayfor the response seeGrpcMock.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.
-
nextWillReturn
Defines a exception
Responsefor subsequent request call to this stub.In order to configure a
Delayfor the response seeGrpcMock.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.
-