Interface StreamRequestMatcherBuilderStep<BUILDER extends StreamRequestMatcherBuilderStep<BUILDER,ReqT>,ReqT>
- All Superinterfaces:
BuilderStep
- All Known Subinterfaces:
RequestPatternBuilderStep<ReqT>
- All Known Implementing Classes:
RequestMatcherBuilderImpl,RequestPatternBuilderImpl
- Author:
- Fadelis
-
Method Summary
Modifier and TypeMethodDescriptiondefault BUILDERwithFirstRequest(Predicate<ReqT> requestPredicate) Adds a requests' matcher, which checks if the first received request satisfies givenPredicate.default BUILDERwithFirstRequest(ReqT request) Adds a requests' matcher, which checks if the first received request is equal to given request object.default BUILDERwithNumberOfRequests(int size) Adds a requests' matcher, which checks if received stream requests number is equal to provided one.default BUILDERwithRequestAtIndex(int index, Predicate<ReqT> requestPredicate) Adds a requests' matcher, which checks if a request at given index satisfies givenPredicate.default BUILDERwithRequestAtIndex(int index, ReqT request) Adds a requests' matcher, which checks if a request at given index is equal to given request object.withRequests(Predicate<List<ReqT>> requestsPredicate) Adds a requests' matcher, which checks if all received stream requests satisfies givenPredicate.default BUILDERwithRequests(List<ReqT> requests) Adds a requests' matcher, which checks if all received stream requests are equal to provided list.default BUILDERwithRequests(ReqT... requests) Adds a requests' matcher, which checks if all received stream requests are equal to provided array.default BUILDERwithRequestsContaining(Predicate<ReqT> requestPredicate) Adds a requests' matcher, which checks if any of the received stream requests satisfies givenPredicate.default BUILDERwithRequestsContaining(ReqT request) Adds a requests' matcher, which checks if any of the received stream requests is equal to given request object.
-
Method Details
-
withRequests
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
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
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
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
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
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
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
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
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
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.
-