Interface SingleResponseBuilderStep<BUILDER extends BuilderStep,RespT>
- All Superinterfaces:
BuilderStep
- All Known Subinterfaces:
ClientStreamingMethodStubBuilderStep<ReqT,,RespT> ServerStreamingMethodStubBuilderStep<ReqT,,RespT> StreamResponseBuilderStep<BUILDER,,ReqT, RespT> UnaryMethodStubBuilderStep<ReqT,RespT>
- All Known Implementing Classes:
ClientStreamingMethodStubBuilderImpl,ServerStreamingMethodStubBuilderImpl,UnaryMethodStubBuilderImpl
- Author:
- Fadelis
-
Method Summary
Modifier and TypeMethodDescriptiondefault BUILDERwillReturn(io.grpc.Status status) Defines a exceptionResponsethat will terminate the request.willReturn(ExceptionResponseActionBuilder response) Defines a exceptionResponsethat will terminate the request.willReturn(ObjectResponseActionBuilder<RespT> response) Defines a singleResponsethat will be returned for the request and complete it.default BUILDERwillReturn(RespT response) Defines a singleResponsethat will be returned for the request and complete it.
-
Method Details
-
willReturn
Defines a singleResponsethat will be returned for the request and complete it. -
willReturn
Defines a exceptionResponsethat will terminate the request. -
willReturn
Defines a single
Responsethat will be returned for the request and complete it.In order to configure a
Delayfor the response seeGrpcMock.response(RespT)method. -
willReturn
Defines a exception
Responsethat will terminate the request.In order to configure a
Delayfor the response seeGrpcMock.statusException(io.grpc.Status)method.
-