public interface StreamRequestMatcherBuilderStep<BUILDER extends StreamRequestMatcherBuilderStep<BUILDER,ReqT>,ReqT> extends BuilderStep
| Modifier and Type | Method and Description |
|---|---|
default BUILDER |
withFirstRequest(Predicate<ReqT> requestPredicate)
Adds a requests' matcher, which checks if the first received request satisfies given
Predicate. |
default BUILDER |
withFirstRequest(ReqT request)
Adds a requests' matcher, which checks if the first received request is equal to given request object.
|
default BUILDER |
withNumberOfRequests(int size)
Adds a requests' matcher, which checks if received stream requests number is equal to provided one.
|
default BUILDER |
withRequestAtIndex(int index,
Predicate<ReqT> requestPredicate)
Adds a requests' matcher, which checks if a request at given index satisfies given
Predicate. |
default BUILDER |
withRequestAtIndex(int index,
ReqT request)
Adds a requests' matcher, which checks if a request at given index is equal to given request object.
|
default BUILDER |
withRequests(List<ReqT> requests)
Adds a requests' matcher, which checks if all received stream requests are equal to provided list.
|
BUILDER |
withRequests(Predicate<List<ReqT>> requestsPredicate)
Adds a requests' matcher, which checks if all received stream requests satisfies given
Predicate. |
default BUILDER |
withRequests(ReqT... requests)
Adds a requests' matcher, which checks if all received stream requests are equal to provided array.
|
default BUILDER |
withRequestsContaining(Predicate<ReqT> requestPredicate)
Adds a requests' matcher, which checks if any of the received stream requests satisfies given
Predicate. |
default BUILDER |
withRequestsContaining(ReqT request)
Adds a requests' matcher, which checks if any of the received stream requests is equal to given request object.
|
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.
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.
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.
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.
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.
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.
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.
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.
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.
Copyright © 2023. All rights reserved.