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

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

    • nextWillReturn

      BUILDER nextWillReturn(@Nonnull StreamResponseBuilder<RespT> response)

      Defines a stream Response for subsequent request call that will execute multiple ResponseAction.

      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

      default BUILDER nextWillReturn(@Nonnull List<RespT> responses)

      Defines a stream Response for subsequent request call that will return multiple response objects.

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

      default BUILDER nextWillReturn(@Nonnull RespT... responses)

      Defines a stream Response for subsequent request call that will return multiple response objects.

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