Interface StreamRequestMatcherBuilderStep<BUILDER extends StreamRequestMatcherBuilderStep<BUILDER,ReqT>,ReqT>

All Superinterfaces:
BuilderStep
All Known Subinterfaces:
RequestPatternBuilderStep<ReqT>
All Known Implementing Classes:
RequestMatcherBuilderImpl, RequestPatternBuilderImpl

public interface StreamRequestMatcherBuilderStep<BUILDER extends StreamRequestMatcherBuilderStep<BUILDER,ReqT>,ReqT> extends BuilderStep
Author:
Fadelis
  • Method Details

    • withRequests

      BUILDER withRequests(@Nonnull Predicate<List<ReqT>> requestsPredicate)

      Adds a requests' matcher, which checks if all received stream requests satisfies given Predicate.

      Only applicable to client and bidi streaming methods.

      Subsequent requests matchers will be added as additional conditions.

    • withRequests

      default BUILDER withRequests(@Nonnull List<ReqT> requests)

      Adds a requests' matcher, which checks if all received stream requests are equal to provided list.

      Only applicable to client and bidi streaming methods.

      Subsequent requests matchers will be added as additional conditions.

    • withRequests

      default BUILDER withRequests(@Nonnull ReqT... requests)

      Adds a requests' matcher, which checks if all received stream requests are equal to provided array.

      Only applicable to client and bidi streaming methods.

      Subsequent requests matchers will be added as additional conditions.

    • withNumberOfRequests

      default BUILDER withNumberOfRequests(int size)

      Adds a requests' matcher, which checks if received stream requests number is equal to provided one.

      Only applicable to client or bidi streaming methods.

      Subsequent requests matchers will be added as additional conditions.

    • withRequestsContaining

      default BUILDER withRequestsContaining(@Nonnull Predicate<ReqT> requestPredicate)

      Adds a requests' matcher, which checks if any of the received stream requests satisfies given Predicate.

      Only applicable to client and bidi streaming methods.

      Subsequent requests matchers will be added as additional conditions.

    • withRequestsContaining

      default BUILDER withRequestsContaining(@Nonnull ReqT request)

      Adds a requests' matcher, which checks if any of the received stream requests is equal to given request object.

      Only applicable to client and bidi streaming methods.

      Subsequent requests matchers will be added as additional conditions.

    • withRequestAtIndex

      default BUILDER withRequestAtIndex(int index, @Nonnull Predicate<ReqT> requestPredicate)

      Adds a requests' matcher, which checks if a request at given index satisfies given Predicate.

      Only applicable to client and bidi streaming methods.

      Subsequent requests matchers will be added as additional conditions.

    • withRequestAtIndex

      default BUILDER withRequestAtIndex(int index, @Nonnull ReqT request)

      Adds a requests' matcher, which checks if a request at given index is equal to given request object.

      Only applicable to client or bidi streaming methods.

      Subsequent requests matchers will be added as additional conditions.

    • withFirstRequest

      default BUILDER withFirstRequest(@Nonnull Predicate<ReqT> requestPredicate)

      Adds a requests' matcher, which checks if the first received request satisfies given Predicate.

      Only applicable to client or bidi streaming methods.

      Subsequent requests matchers will be added as additional conditions.

    • withFirstRequest

      default BUILDER withFirstRequest(@Nonnull ReqT request)

      Adds a requests' matcher, which checks if the first received request is equal to given request object.

      Only applicable to client or bidi streaming methods.

      Subsequent requests matchers will be added as additional conditions.