Package org.grpcmock.definitions.matcher
Class StatusMatcherBuilderImpl
java.lang.Object
org.grpcmock.definitions.matcher.StatusMatcherBuilderImpl
- All Implemented Interfaces:
BuilderStep,StatusMatcherBuilderStep<StatusMatcherBuilderImpl>
public class StatusMatcherBuilderImpl
extends Object
implements StatusMatcherBuilderStep<StatusMatcherBuilderImpl>
- Author:
- Fadelis
-
Method Summary
Modifier and TypeMethodDescriptionbuild()withStatus(Predicate<io.grpc.Status> predicate) Adds a closeStatusmatcher, which will check if the close status satisfies given predicate.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.grpcmock.definitions.matcher.steps.StatusMatcherBuilderStep
withStatusCode, withStatusMessage, withStatusOk
-
Method Details
-
withStatus
Description copied from interface:StatusMatcherBuilderStepAdds a close
Statusmatcher, which will check if the close status satisfies given predicate.The status inside the predicate might be
nullif the request has not finished during the match invocation.Subsequent status matchers will be added as additional conditions.
- Specified by:
withStatusin interfaceStatusMatcherBuilderStep<StatusMatcherBuilderImpl>
-
build
-