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

public interface NextSingleResponseBuilderStep<BUILDER extends NextSingleResponseBuilderStep<BUILDER,ReqT,RespT>,ReqT,RespT> extends BuilderStep, MethodStubBuilder<ReqT,RespT>
Author:
Fadelis
  • Method Details

    • nextWillReturn

      Defines a single Response for 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 Response for 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

      default BUILDER nextWillReturn(@Nonnull RespT response)

      Defines a single Response for subsequent request call to this stub.

      In order to configure a Delay for the response see GrpcMock.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

      default BUILDER nextWillReturn(@Nonnull io.grpc.Status status)

      Defines a exception Response for subsequent request call to this stub.

      In order to configure a Delay for the response see GrpcMock.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.