public interface RequestMatcherBuilderStep<BUILDER extends RequestMatcherBuilderStep<BUILDER,ReqT>,ReqT> extends BuilderStep
| Modifier and Type | Method and Description |
|---|---|
BUILDER |
withRequest(Predicate<ReqT> requestPredicate)
Adds a request matcher for the stub, which will trigger only if incoming request
satisfies given
Predicate. |
default BUILDER |
withRequest(ReqT request)
Adds a request matcher for the stub, which will trigger only if incoming request
is equal to the provided one.
|
BUILDER withRequest(@Nonnull Predicate<ReqT> requestPredicate)
Adds a request matcher for the stub, which will trigger only if incoming request
satisfies given Predicate.
Only applicable to unary or server streaming methods.
Subsequent request matchers will replace the old one.
Copyright © 2023. All rights reserved.