public interface StatusMatcherBuilderStep<BUILDER extends StatusMatcherBuilderStep<BUILDER>> extends BuilderStep
| Modifier and Type | Method and Description |
|---|---|
BUILDER |
withStatus(Predicate<io.grpc.Status> predicate)
Adds a close
Status matcher, which will check if the close status satisfies given predicate. |
default BUILDER |
withStatusCode(io.grpc.Status.Code code)
Adds a close
Status matcher, which will check if the close status has the given Status.Code. |
default BUILDER |
withStatusMessage(String message)
Adds a close
Status matcher, which will check if the close status description is equal to given one. |
default BUILDER |
withStatusOk()
Adds a close
Status matcher, which will check if the close status closed with Status.Code.OK. |
BUILDER withStatus(@Nonnull Predicate<io.grpc.Status> predicate)
Adds a close Status matcher, which will check if the close status satisfies given predicate.
The status inside the predicate might be null if the request has not finished during the match invocation.
Subsequent status matchers will be added as additional conditions.
default BUILDER withStatusCode(@Nonnull io.grpc.Status.Code code)
Adds a close Status matcher, which will check if the close status has the given Status.Code.
Subsequent status matchers will be added as additional conditions.
default BUILDER withStatusOk()
Adds a close Status matcher, which will check if the close status closed with Status.Code.OK.
Subsequent status matchers will be added as additional conditions.
Copyright © 2023. All rights reserved.