Index
All Classes and Interfaces|All Packages|Serialized Form
A
- and(Status) - Method in interface org.grpcmock.definitions.response.steps.ObjectStreamResponseBuilderStep
-
Defines a status exception
ResponseActionfor the stream response. - and(ExceptionResponseActionBuilder) - Method in interface org.grpcmock.definitions.response.steps.ObjectStreamResponseBuilderStep
-
Defines a exception
ResponseActionfor the stream response. - and(ExceptionResponseActionBuilder) - Method in class org.grpcmock.definitions.response.StreamResponseBuilderImpl
- and(ObjectResponseActionBuilder<RespT>) - Method in interface org.grpcmock.definitions.response.steps.ObjectStreamResponseBuilderStep
-
Defines the next
ResponseActionin the stream response. - and(ObjectResponseActionBuilder<RespT>) - Method in class org.grpcmock.definitions.response.StreamResponseBuilderImpl
- and(RespT) - Method in interface org.grpcmock.definitions.response.steps.ObjectStreamResponseBuilderStep
-
Defines the next
ResponseActionin the stream response. - atLeast(int) - Static method in class org.grpcmock.definitions.verification.CountMatcher
-
Called the specified number of times or more.
- atLeast(int) - Static method in class org.grpcmock.GrpcMock
-
Called the specified number of times or more.
- atMost(int) - Static method in class org.grpcmock.definitions.verification.CountMatcher
-
Called the specified number of times or less.
- atMost(int) - Static method in class org.grpcmock.GrpcMock
-
Called the specified number of times or less.
B
- bidiStreamingMethod(MethodDescriptor<ReqT, RespT>) - Static method in class org.grpcmock.GrpcMock
-
Returns a stub builder for
MethodDescriptor.MethodType.BIDI_STREAMINGmethod. - BidiStreamingMethodStubBuilderImpl<ReqT,
RespT> - Class in org.grpcmock.definitions.stub - BidiStreamingMethodStubBuilderImpl(MethodDescriptor<ReqT, RespT>) - Constructor for class org.grpcmock.definitions.stub.BidiStreamingMethodStubBuilderImpl
- BidiStreamingMethodStubBuilderStep<ReqT,
RespT> - Interface in org.grpcmock.definitions.stub.steps - build() - Method in class org.grpcmock.definitions.matcher.HeadersMatcherBuilderImpl
- build() - Method in class org.grpcmock.definitions.matcher.RequestMatcherBuilderImpl
- build() - Method in class org.grpcmock.definitions.matcher.StatusMatcherBuilderImpl
- build() - Method in class org.grpcmock.definitions.response.ExceptionResponseActionBuilderImpl
- build() - Method in class org.grpcmock.definitions.response.ObjectResponseActionBuilderImpl
- build() - Method in interface org.grpcmock.definitions.response.steps.ExceptionResponseActionBuilder
- build() - Method in interface org.grpcmock.definitions.response.steps.ObjectResponseActionBuilder
- build() - Method in interface org.grpcmock.definitions.response.steps.StreamResponseBuilder
- build() - Method in class org.grpcmock.definitions.response.StreamResponseBuilderImpl
- build() - Method in class org.grpcmock.definitions.stub.BidiStreamingMethodStubBuilderImpl
- build() - Method in class org.grpcmock.definitions.stub.ClientStreamingMethodStubBuilderImpl
- build() - Method in class org.grpcmock.definitions.stub.ServerStreamingMethodStubBuilderImpl
- build() - Method in interface org.grpcmock.definitions.stub.steps.MethodStubBuilder
- build() - Method in class org.grpcmock.definitions.stub.UnaryMethodStubBuilderImpl
- build() - Method in class org.grpcmock.definitions.verification.RequestPatternBuilderImpl
- build() - Method in interface org.grpcmock.definitions.verification.steps.RequestPatternBuilderStep
-
Builds a
RequestPatternwith given configuration. - build() - Method in class org.grpcmock.GrpcMockBuilder
- build() - Method in class org.grpcmock.util.FunctionalResponseObserver.Builder
- builder() - Static method in interface org.grpcmock.definitions.matcher.HeadersMatcher
- builder() - Static method in interface org.grpcmock.definitions.matcher.RequestMatcher
- builder() - Static method in interface org.grpcmock.definitions.matcher.StatusMatcher
- builder() - Static method in class org.grpcmock.util.FunctionalResponseObserver
- Builder() - Constructor for class org.grpcmock.util.FunctionalResponseObserver.Builder
- BuilderStep - Interface in org.grpcmock.definitions
C
- call(StreamObserver<RespT>) - Method in class org.grpcmock.definitions.stub.StubScenario
- call(ReqT, StreamObserver<RespT>) - Method in class org.grpcmock.definitions.stub.StubScenario
- callCountFor(RequestPattern<?>) - Method in class org.grpcmock.interceptors.RequestCaptureInterceptor
- calledMethod(MethodDescriptor<ReqT, ?>) - Static method in class org.grpcmock.GrpcMock
-
Returns request pattern builder instance, used for verifying call count using
GrpcMock.verifyThat(RequestPatternBuilderStep, CountMatcher). - CapturedRequest<ReqT> - Class in org.grpcmock.interceptors
- CapturedRequest(MethodDescriptor<ReqT, ?>, Metadata, List<ReqT>) - Constructor for class org.grpcmock.interceptors.CapturedRequest
- capturedRequestsFor(RequestPattern<ReqT>) - Method in class org.grpcmock.GrpcMock
-
Return all
CapturedRequestthat match the provided request pattern. - capturedRequestsFor(RequestPatternBuilderStep<ReqT>) - Static method in class org.grpcmock.GrpcMock
-
Return all
CapturedRequestthat match the provided request pattern. - clear() - Method in class org.grpcmock.interceptors.RequestCaptureInterceptor
- clearRequestsPredicates() - Method in class org.grpcmock.definitions.matcher.RequestMatcherBuilderImpl
- clearRequestsPredicates() - Method in class org.grpcmock.definitions.verification.RequestPatternBuilderImpl
- clientStreamingMethod(MethodDescriptor<ReqT, RespT>) - Static method in class org.grpcmock.GrpcMock
-
Returns a stub builder for
MethodDescriptor.MethodType.CLIENT_STREAMINGmethod orMethodDescriptor.MethodType.BIDI_STREAMINGmethod with a single response at request stream completion. - ClientStreamingMethodStubBuilderImpl<ReqT,
RespT> - Class in org.grpcmock.definitions.stub - ClientStreamingMethodStubBuilderImpl(MethodDescriptor<ReqT, RespT>) - Constructor for class org.grpcmock.definitions.stub.ClientStreamingMethodStubBuilderImpl
- ClientStreamingMethodStubBuilderStep<ReqT,
RespT> - Interface in org.grpcmock.definitions.stub.steps - closeStatus() - Method in class org.grpcmock.interceptors.CapturedRequest
- configureFor(int) - Static method in class org.grpcmock.GrpcMock
-
Configure the global static gRPC Mock instance to use a new one with the provided port.
- configureFor(GrpcMock) - Static method in class org.grpcmock.GrpcMock
-
Configure the global static gRPC Mock instance to use the provided one.
- CountMatcher - Class in org.grpcmock.definitions.verification
- CountMatcher(String, IntPredicate) - Constructor for class org.grpcmock.definitions.verification.CountMatcher
D
- Delay - Interface in org.grpcmock.definitions.response
-
Functional interface for a delay in milliseconds used for
ResponseAction. - delayAction() - Method in interface org.grpcmock.definitions.response.Delay
-
Trigger configured delay for the response action.
- DelayBuilderStep<BUILDER extends BuilderStep> - Interface in org.grpcmock.definitions.response.steps
- DelegateHandlerRegistry - Class in org.grpcmock
- DelegateHandlerRegistry() - Constructor for class org.grpcmock.DelegateHandlerRegistry
E
- exception(Throwable) - Static method in class org.grpcmock.GrpcMock
-
Returns a response action, which will send out the given exception via
StreamObserver.onError(java.lang.Throwable). - ExceptionResponseActionBuilder - Interface in org.grpcmock.definitions.response.steps
- ExceptionResponseActionBuilderImpl - Class in org.grpcmock.definitions.response
- ExceptionResponseActionBuilderImpl(Status) - Constructor for class org.grpcmock.definitions.response.ExceptionResponseActionBuilderImpl
- ExceptionResponseActionBuilderImpl(Throwable) - Constructor for class org.grpcmock.definitions.response.ExceptionResponseActionBuilderImpl
- ExceptionStreamResponseBuildersStep<RespT> - Interface in org.grpcmock.definitions.response.steps
- execute(StreamObserver<RespT>) - Method in interface org.grpcmock.definitions.response.Response
- execute(StreamObserver<RespT>) - Method in interface org.grpcmock.definitions.response.ResponseAction
-
Execute a response action on the
StreamObserver. - execute(StreamObserver<RespT>) - Method in class org.grpcmock.definitions.response.ResponseImpl
- execute(StreamObserver<RespT>) - Method in class org.grpcmock.definitions.response.ResponseProxyImpl
- execute(ReqT, StreamObserver<RespT>) - Method in interface org.grpcmock.definitions.response.Response
- execute(ReqT, StreamObserver<RespT>) - Method in class org.grpcmock.definitions.response.ResponseImpl
- execute(ReqT, StreamObserver<RespT>) - Method in class org.grpcmock.definitions.response.ResponseProxyImpl
- executor(Executor) - Method in class org.grpcmock.GrpcMockBuilder
F
- FirstRequestMatcherBuilderStep<BUILDER extends FirstRequestMatcherBuilderStep<BUILDER,
ReqT>, ReqT> - Interface in org.grpcmock.definitions.matcher.steps - fixedDelay(long) - Static method in interface org.grpcmock.definitions.response.Delay
-
Fixed
Delayin milliseconds. - fullMethodName() - Method in class org.grpcmock.definitions.stub.MethodStub
- fullMethodName() - Method in class org.grpcmock.definitions.verification.RequestPattern
- FunctionalHelpers - Class in org.grpcmock.util
-
Utility class for functional programming helper methods
- FunctionalResponseObserver<V> - Class in org.grpcmock.util
- FunctionalResponseObserver.Builder<V> - Class in org.grpcmock.util
G
- getCapturedRequest() - Static method in class org.grpcmock.interceptors.RequestCaptureInterceptor
- getDelegate() - Method in class org.grpcmock.DelegateHandlerRegistry
- getGlobalInProcessName() - Static method in class org.grpcmock.GrpcMock
-
Returns the name of
InProcessServerif one is used for the global static gRPC Mock instance. - getGlobalPort() - Static method in class org.grpcmock.GrpcMock
-
Returns the port for the global static gRPC Mock instance.
- getInProcessName() - Method in class org.grpcmock.GrpcMock
-
Retrieve the name of
InProcessServerif one is used. - getPort() - Method in class org.grpcmock.GrpcMock
-
Retrieve current port of the server.
- grpcMock() - Static method in class org.grpcmock.GrpcMock
-
Returns gRPC Mock builder initiated with a random port.
- grpcMock(int) - Static method in class org.grpcmock.GrpcMock
-
Returns gRPC Mock builder with the given port.
- grpcMock(ServerBuilder) - Static method in class org.grpcmock.GrpcMock
-
Returns gRPC Mock builder using the provided gRPC
ServerBuilderconfiguration. - GrpcMock - Class in org.grpcmock
-
Main gRPC Mock class for managing the gRPC server.
- GrpcMockBuilder - Class in org.grpcmock
- GrpcMockException - Exception in org.grpcmock.exception
-
General exception type for gRPC Mock for when things go unexpected.
- GrpcMockException(String) - Constructor for exception org.grpcmock.exception.GrpcMockException
- GrpcMockException(String, Throwable) - Constructor for exception org.grpcmock.exception.GrpcMockException
- GrpcMockValidationException - Exception in org.grpcmock.exception
-
Exception type thrown on failed validation when configuring gRPC Mock or creating stubs.
- GrpcMockValidationException(String) - Constructor for exception org.grpcmock.exception.GrpcMockValidationException
- GrpcMockValidationException(String, Throwable) - Constructor for exception org.grpcmock.exception.GrpcMockValidationException
- GrpcMockVerificationError - Error in org.grpcmock.exception
-
Exception type thrown when verifying request call count condition.
- GrpcMockVerificationError(String) - Constructor for error org.grpcmock.exception.GrpcMockVerificationError
- GrpcMockVerificationError(String, Throwable) - Constructor for error org.grpcmock.exception.GrpcMockVerificationError
H
- headers() - Method in class org.grpcmock.interceptors.CapturedRequest
- HeadersMatcher - Interface in org.grpcmock.definitions.matcher
-
Header matcher interface.
- HeadersMatcherBuilderImpl - Class in org.grpcmock.definitions.matcher
- HeadersMatcherBuilderStep<BUILDER extends HeadersMatcherBuilderStep<BUILDER>> - Interface in org.grpcmock.definitions.matcher.steps
I
- inMilliseconds() - Method in interface org.grpcmock.definitions.response.Delay
-
Defines delay value in milliseconds.
- inProcessGrpcMock() - Static method in class org.grpcmock.GrpcMock
-
Returns an in-process gRPC Mock builder by generating a random name.
- inProcessGrpcMock(String) - Static method in class org.grpcmock.GrpcMock
-
Returns an in-process gRPC Mock builder with the given name.
- InProcessGrpcMockBuilder - Class in org.grpcmock
- InProcessGrpcMockBuilder(String) - Constructor for class org.grpcmock.InProcessGrpcMockBuilder
- interceptCall(ServerCall<ReqT, RespT>, Metadata, ServerCallHandler<ReqT, RespT>) - Method in class org.grpcmock.interceptors.RequestCaptureInterceptor
- interceptor(ServerInterceptor) - Method in class org.grpcmock.GrpcMockBuilder
- isTerminating() - Method in interface org.grpcmock.definitions.response.ResponseAction
-
Determines if the
ResponseActionis a terminating action. - isTerminating() - Method in interface org.grpcmock.definitions.response.TerminatingResponseAction
L
- lookupMethod(String, String) - Method in class org.grpcmock.DelegateHandlerRegistry
M
- matches(Metadata) - Method in interface org.grpcmock.definitions.matcher.HeadersMatcher
- matches(Status) - Method in interface org.grpcmock.definitions.matcher.StatusMatcher
- matches(List<ReqT>) - Method in interface org.grpcmock.definitions.matcher.RequestMatcher
- matches(CapturedRequest<ReqT>) - Method in class org.grpcmock.definitions.stub.StubScenario
- matches(CapturedRequest<ReqT>) - Method in class org.grpcmock.definitions.verification.RequestPattern
- method() - Method in class org.grpcmock.interceptors.CapturedRequest
- MethodStub<ReqT,
RespT> - Class in org.grpcmock.definitions.stub - MethodStubBuilder<ReqT,
RespT> - Interface in org.grpcmock.definitions.stub.steps
N
- never() - Static method in class org.grpcmock.definitions.verification.CountMatcher
-
Never called.
- never() - Static method in class org.grpcmock.GrpcMock
-
Never called.
- NextBidiStreamingMethodStubBuilderStep<ReqT,
RespT> - Interface in org.grpcmock.definitions.stub.steps - NextClientStreamingMethodResponseBuilderStep<ReqT,
RespT> - Interface in org.grpcmock.definitions.stub.steps - NextServerStreamingMethodResponseBuilderStep<ReqT,
RespT> - Interface in org.grpcmock.definitions.stub.steps - NextSingleRequestProxyResponseBuilderStep<BUILDER extends NextSingleRequestProxyResponseBuilderStep<BUILDER,
ReqT, RespT>, ReqT, RespT> - Interface in org.grpcmock.definitions.stub.steps - NextSingleResponseBuilderStep<BUILDER extends NextSingleResponseBuilderStep<BUILDER,
ReqT, RespT>, ReqT, RespT> - Interface in org.grpcmock.definitions.stub.steps - NextStreamRequestProxyResponseBuilderStep<BUILDER extends BuilderStep,
ReqT, RespT> - Interface in org.grpcmock.definitions.stub.steps - NextStreamResponseBuilderStep<BUILDER extends NextStreamResponseBuilderStep<BUILDER,
ReqT, RespT>, ReqT, RespT> - Interface in org.grpcmock.definitions.stub.steps - NextUnaryMethodResponseBuilderStep<ReqT,
RespT> - Interface in org.grpcmock.definitions.stub.steps - nextWillProxyTo(BiConsumer<ReqT, StreamObserver<RespT>>) - Method in class org.grpcmock.definitions.stub.ServerStreamingMethodStubBuilderImpl
- nextWillProxyTo(BiConsumer<ReqT, StreamObserver<RespT>>) - Method in interface org.grpcmock.definitions.stub.steps.NextSingleRequestProxyResponseBuilderStep
-
Defines a proxying response, which will proxy the request to given
Responsefor subsequent request call to this stub. - nextWillProxyTo(BiConsumer<ReqT, StreamObserver<RespT>>) - Method in class org.grpcmock.definitions.stub.UnaryMethodStubBuilderImpl
- nextWillProxyTo(Function<StreamObserver<RespT>, StreamObserver<ReqT>>) - Method in class org.grpcmock.definitions.stub.BidiStreamingMethodStubBuilderImpl
- nextWillProxyTo(Function<StreamObserver<RespT>, StreamObserver<ReqT>>) - Method in class org.grpcmock.definitions.stub.ClientStreamingMethodStubBuilderImpl
- nextWillProxyTo(Function<StreamObserver<RespT>, StreamObserver<ReqT>>) - Method in interface org.grpcmock.definitions.stub.steps.NextStreamRequestProxyResponseBuilderStep
-
Defines a proxying response, which will proxy the request to given
Responsefor subsequent request call to this stub. - nextWillReturn(Status) - Method in interface org.grpcmock.definitions.stub.steps.NextSingleResponseBuilderStep
-
Defines a exception
Responsefor subsequent request call to this stub. - nextWillReturn(Function<ReqT, RespT>) - Method in interface org.grpcmock.definitions.stub.steps.NextSingleRequestProxyResponseBuilderStep
-
Defines a proxying response for subsequent request call to this stub, which is built based on received request.
- nextWillReturn(List<RespT>) - Method in interface org.grpcmock.definitions.stub.steps.NextStreamResponseBuilderStep
-
Defines a stream
Responsefor subsequent request call that will return multiple response objects. - nextWillReturn(ExceptionResponseActionBuilder) - Method in class org.grpcmock.definitions.stub.ClientStreamingMethodStubBuilderImpl
- nextWillReturn(ExceptionResponseActionBuilder) - Method in class org.grpcmock.definitions.stub.ServerStreamingMethodStubBuilderImpl
- nextWillReturn(ExceptionResponseActionBuilder) - Method in interface org.grpcmock.definitions.stub.steps.NextSingleResponseBuilderStep
-
Defines a exception
Responsefor subsequent request call to this stub. - nextWillReturn(ExceptionResponseActionBuilder) - Method in class org.grpcmock.definitions.stub.UnaryMethodStubBuilderImpl
- nextWillReturn(ObjectResponseActionBuilder<RespT>) - Method in class org.grpcmock.definitions.stub.ClientStreamingMethodStubBuilderImpl
- nextWillReturn(ObjectResponseActionBuilder<RespT>) - Method in class org.grpcmock.definitions.stub.ServerStreamingMethodStubBuilderImpl
- nextWillReturn(ObjectResponseActionBuilder<RespT>) - Method in interface org.grpcmock.definitions.stub.steps.NextSingleResponseBuilderStep
-
Defines a single
Responsefor subsequent request call to this stub. - nextWillReturn(ObjectResponseActionBuilder<RespT>) - Method in class org.grpcmock.definitions.stub.UnaryMethodStubBuilderImpl
- nextWillReturn(StreamResponseBuilder<RespT>) - Method in class org.grpcmock.definitions.stub.ServerStreamingMethodStubBuilderImpl
- nextWillReturn(StreamResponseBuilder<RespT>) - Method in interface org.grpcmock.definitions.stub.steps.NextStreamResponseBuilderStep
-
Defines a stream
Responsefor subsequent request call that will execute multipleResponseAction. - nextWillReturn(RespT) - Method in interface org.grpcmock.definitions.stub.steps.NextSingleResponseBuilderStep
-
Defines a single
Responsefor subsequent request call to this stub. - nextWillReturn(RespT...) - Method in interface org.grpcmock.definitions.stub.steps.NextStreamResponseBuilderStep
-
Defines a stream
Responsefor subsequent request call that will return multiple response objects. - normalizedCapturedRequest(CapturedRequest<ReqT>) - Method in class org.grpcmock.definitions.verification.RequestPattern
O
- ObjectResponseActionBuilder<RespT> - Interface in org.grpcmock.definitions.response.steps
- ObjectResponseActionBuilderImpl<RespT> - Class in org.grpcmock.definitions.response
- ObjectResponseActionBuilderImpl(RespT) - Constructor for class org.grpcmock.definitions.response.ObjectResponseActionBuilderImpl
- ObjectStreamResponseBuilderStep<RespT> - Interface in org.grpcmock.definitions.response.steps
- once() - Static method in class org.grpcmock.definitions.verification.CountMatcher
-
Called exactly one time.
- onCompleted() - Method in class org.grpcmock.util.FunctionalResponseObserver
- onCompleted(Runnable) - Method in class org.grpcmock.util.FunctionalResponseObserver.Builder
- onError(Throwable) - Method in class org.grpcmock.util.FunctionalResponseObserver
- onError(Consumer<Throwable>) - Method in class org.grpcmock.util.FunctionalResponseObserver.Builder
- onNext(Consumer<V>) - Method in class org.grpcmock.util.FunctionalResponseObserver.Builder
- onNext(V) - Method in class org.grpcmock.util.FunctionalResponseObserver
- org.grpcmock - package org.grpcmock
- org.grpcmock.definitions - package org.grpcmock.definitions
- org.grpcmock.definitions.matcher - package org.grpcmock.definitions.matcher
- org.grpcmock.definitions.matcher.steps - package org.grpcmock.definitions.matcher.steps
- org.grpcmock.definitions.response - package org.grpcmock.definitions.response
- org.grpcmock.definitions.response.steps - package org.grpcmock.definitions.response.steps
- org.grpcmock.definitions.stub - package org.grpcmock.definitions.stub
- org.grpcmock.definitions.stub.steps - package org.grpcmock.definitions.stub.steps
- org.grpcmock.definitions.verification - package org.grpcmock.definitions.verification
- org.grpcmock.definitions.verification.steps - package org.grpcmock.definitions.verification.steps
- org.grpcmock.exception - package org.grpcmock.exception
- org.grpcmock.interceptors - package org.grpcmock.interceptors
- org.grpcmock.util - package org.grpcmock.util
R
- randomDelay(long, long) - Static method in interface org.grpcmock.definitions.response.Delay
-
Random delay between given minMilliseconds and maxMilliseconds bounds.
- register(MethodStubBuilder<ReqT, RespT>) - Method in class org.grpcmock.GrpcMock
-
Register a gRPC method stub to the server.
- registerMethod(MethodStub<ReqT, RespT>) - Method in class org.grpcmock.definitions.stub.ServiceStub
- RequestCaptureInterceptor - Class in org.grpcmock.interceptors
- RequestCaptureInterceptor() - Constructor for class org.grpcmock.interceptors.RequestCaptureInterceptor
- RequestMatcher<ReqT> - Interface in org.grpcmock.definitions.matcher
- RequestMatcherBuilderImpl<ReqT> - Class in org.grpcmock.definitions.matcher
- RequestMatcherBuilderStep<BUILDER extends RequestMatcherBuilderStep<BUILDER,
ReqT>, ReqT> - Interface in org.grpcmock.definitions.matcher.steps - RequestPattern<ReqT> - Class in org.grpcmock.definitions.verification
-
Defines the conditions for
CapturedRequestmatching. - RequestPatternBuilderImpl<ReqT> - Class in org.grpcmock.definitions.verification
-
Builder for
RequestPatternto define conditions forCapturedRequestmatching. - RequestPatternBuilderImpl(MethodDescriptor<ReqT, ?>) - Constructor for class org.grpcmock.definitions.verification.RequestPatternBuilderImpl
- RequestPatternBuilderStep<ReqT> - Interface in org.grpcmock.definitions.verification.steps
- requests() - Method in class org.grpcmock.interceptors.CapturedRequest
- requestsFor(RequestPattern<ReqT>) - Method in class org.grpcmock.interceptors.RequestCaptureInterceptor
- resetAll() - Method in class org.grpcmock.GrpcMock
-
Removes all stubs defined from the mock server.
- resetMappings() - Static method in class org.grpcmock.GrpcMock
-
Removes all stubs defined from the global mock server.
- response(RespT) - Static method in class org.grpcmock.GrpcMock
-
Returns a response action, which will send out the given response object via
StreamObserver.onNext(V). - Response<ReqT,
RespT> - Interface in org.grpcmock.definitions.response - ResponseAction<RespT> - Interface in org.grpcmock.definitions.response
-
Interface defining a single action, which can interact with the
StreamObserver. - ResponseImpl<ReqT,
RespT> - Class in org.grpcmock.definitions.response - ResponseImpl(List<ResponseAction<RespT>>) - Constructor for class org.grpcmock.definitions.response.ResponseImpl
- ResponseImpl(ResponseAction<RespT>) - Constructor for class org.grpcmock.definitions.response.ResponseImpl
- ResponseProxyImpl<ReqT,
RespT> - Class in org.grpcmock.definitions.response - ResponseProxyImpl(BiConsumer<ReqT, StreamObserver<RespT>>) - Constructor for class org.grpcmock.definitions.response.ResponseProxyImpl
- ResponseProxyImpl(Function<StreamObserver<RespT>, StreamObserver<ReqT>>) - Constructor for class org.grpcmock.definitions.response.ResponseProxyImpl
- reverseStream(List<T>) - Static method in class org.grpcmock.util.FunctionalHelpers
-
Returns a reversed order stream from the provided list.
S
- serverServiceDefinition() - Method in class org.grpcmock.definitions.stub.ServiceStub
- serverStreamingMethod(MethodDescriptor<ReqT, RespT>) - Static method in class org.grpcmock.GrpcMock
-
Returns a stub builder for
MethodDescriptor.MethodType.SERVER_STREAMINGmethod. - ServerStreamingMethodStubBuilderImpl<ReqT,
RespT> - Class in org.grpcmock.definitions.stub - ServerStreamingMethodStubBuilderImpl(MethodDescriptor<ReqT, RespT>) - Constructor for class org.grpcmock.definitions.stub.ServerStreamingMethodStubBuilderImpl
- ServerStreamingMethodStubBuilderStep<ReqT,
RespT> - Interface in org.grpcmock.definitions.stub.steps - serviceName() - Method in class org.grpcmock.definitions.stub.MethodStub
- ServiceStub - Class in org.grpcmock.definitions.stub
- ServiceStub(MethodStub<?, ?>) - Constructor for class org.grpcmock.definitions.stub.ServiceStub
- SingleRequestProxyResponseBuilderStep<BUILDER extends BuilderStep,
ReqT, RespT> - Interface in org.grpcmock.definitions.stub.steps - SingleResponseBuilderStep<BUILDER extends BuilderStep,
RespT> - Interface in org.grpcmock.definitions.stub.steps - start() - Method in class org.grpcmock.GrpcMock
-
Starts the gRPC mock server.
- statusException(Status) - Static method in class org.grpcmock.GrpcMock
-
Returns a response action, which will send out a
StatusRuntimeExceptionwith givenStatusviaStreamObserver.onError(java.lang.Throwable). - StatusMatcher - Interface in org.grpcmock.definitions.matcher
- StatusMatcherBuilderImpl - Class in org.grpcmock.definitions.matcher
- StatusMatcherBuilderStep<BUILDER extends StatusMatcherBuilderStep<BUILDER>> - Interface in org.grpcmock.definitions.matcher.steps
- stop() - Method in class org.grpcmock.GrpcMock
-
Stops the gRPC mock server via
Server.shutdownNow(). - stream(List<RespT>) - Static method in class org.grpcmock.GrpcMock
-
Returns a stream response, which can respond with multiple
ResponseAction. - stream(ExceptionResponseActionBuilder) - Static method in class org.grpcmock.GrpcMock
-
Returns a terminating stream response, which will respond with
ResponseActionand terminate the call, since it will beStreamObserver.onError(java.lang.Throwable)response. - stream(ObjectResponseActionBuilder<RespT>) - Static method in class org.grpcmock.GrpcMock
-
Returns a stream response, which can respond with multiple
ResponseAction. - stream(RespT...) - Static method in class org.grpcmock.GrpcMock
-
Returns a stream response, which can respond with multiple
ResponseAction. - StreamRequestMatcherBuilderStep<BUILDER extends StreamRequestMatcherBuilderStep<BUILDER,
ReqT>, ReqT> - Interface in org.grpcmock.definitions.matcher.steps - StreamRequestProxyResponseBuilderStep<BUILDER extends BuilderStep,
ReqT, RespT> - Interface in org.grpcmock.definitions.stub.steps - StreamResponseBuilder<RespT> - Interface in org.grpcmock.definitions.response.steps
- StreamResponseBuilderImpl<RespT> - Class in org.grpcmock.definitions.response
- StreamResponseBuilderImpl(List<ResponseAction<RespT>>) - Constructor for class org.grpcmock.definitions.response.StreamResponseBuilderImpl
- StreamResponseBuilderImpl(ResponseAction<RespT>) - Constructor for class org.grpcmock.definitions.response.StreamResponseBuilderImpl
- StreamResponseBuilderStep<BUILDER extends BuilderStep,
ReqT, RespT> - Interface in org.grpcmock.definitions.stub.steps - stubFor(MethodStubBuilder<ReqT, RespT>) - Static method in class org.grpcmock.GrpcMock
-
Register a gRPC method stub to the global gRPC mock server.
- StubScenario<ReqT,
RespT> - Class in org.grpcmock.definitions.stub - StubScenario(RequestPattern<ReqT>, List<Response<ReqT, RespT>>) - Constructor for class org.grpcmock.definitions.stub.StubScenario
T
- TerminatingResponseAction<RespT> - Interface in org.grpcmock.definitions.response
- test(int) - Method in class org.grpcmock.definitions.verification.CountMatcher
- times(int) - Static method in class org.grpcmock.definitions.verification.CountMatcher
-
Called exactly the specified number of times.
- times(int) - Static method in class org.grpcmock.GrpcMock
-
Called exactly the specified number of times.
- timesCalled() - Method in class org.grpcmock.definitions.response.ResponseImpl
- timesCalled() - Method in class org.grpcmock.definitions.response.ResponseProxyImpl
- timesCalled() - Method in interface org.grpcmock.definitions.response.Traceable
- toString() - Method in class org.grpcmock.definitions.verification.CountMatcher
- toString() - Method in class org.grpcmock.interceptors.CapturedRequest
- Traceable - Interface in org.grpcmock.definitions.response
-
Interface used in
ResponseandStubScenarioto track the number of invocations. - transportSecurity(File, File) - Method in class org.grpcmock.GrpcMockBuilder
- twice() - Static method in class org.grpcmock.definitions.verification.CountMatcher
-
Called exactly two times.
U
- unaryMethod(MethodDescriptor<ReqT, RespT>) - Static method in class org.grpcmock.GrpcMock
-
Returns a stub builder for
MethodDescriptor.MethodType.UNARYmethod orMethodDescriptor.MethodType.SERVER_STREAMINGmethod with a single response. - UnaryMethodStubBuilderImpl<ReqT,
RespT> - Class in org.grpcmock.definitions.stub - UnaryMethodStubBuilderImpl(MethodDescriptor<ReqT, RespT>) - Constructor for class org.grpcmock.definitions.stub.UnaryMethodStubBuilderImpl
- UnaryMethodStubBuilderStep<ReqT,
RespT> - Interface in org.grpcmock.definitions.stub.steps - UnimplementedStatusException - Exception in org.grpcmock.exception
-
Exception wrapper for
StatusRuntimeExceptionwithStatus.UNIMPLEMENTED. - UnimplementedStatusException(String) - Constructor for exception org.grpcmock.exception.UnimplementedStatusException
-
Create a
StatusRuntimeExceptionwithStatus.UNIMPLEMENTEDstatus and given message.
V
- verifyThat(MethodDescriptor<ReqT, ?>) - Static method in class org.grpcmock.GrpcMock
-
Verify that given method was called exactly once.
- verifyThat(MethodDescriptor<ReqT, ?>, CountMatcher) - Static method in class org.grpcmock.GrpcMock
-
Verify that given method was called number of times satisfying provided
CountMatcher. - verifyThat(RequestPattern<ReqT>, CountMatcher) - Method in class org.grpcmock.GrpcMock
-
Verify that given
RequestPatternis called a number of times satisfying the providedCountMatcher. - verifyThat(RequestPatternBuilderStep<ReqT>) - Static method in class org.grpcmock.GrpcMock
-
Verify that given
RequestPatternwas called exactly once. - verifyThat(RequestPatternBuilderStep<ReqT>, CountMatcher) - Static method in class org.grpcmock.GrpcMock
-
Verify that given
RequestPatternwas called number of times satisfying providedCountMatcher.
W
- wasCalled() - Method in interface org.grpcmock.definitions.response.Traceable
- willProxyTo(BiConsumer<ReqT, StreamObserver<RespT>>) - Method in class org.grpcmock.definitions.stub.ServerStreamingMethodStubBuilderImpl
- willProxyTo(BiConsumer<ReqT, StreamObserver<RespT>>) - Method in interface org.grpcmock.definitions.stub.steps.SingleRequestProxyResponseBuilderStep
-
Defines a proxying response, which will proxy the request to given
Response. - willProxyTo(BiConsumer<ReqT, StreamObserver<RespT>>) - Method in class org.grpcmock.definitions.stub.UnaryMethodStubBuilderImpl
- willProxyTo(Function<StreamObserver<RespT>, StreamObserver<ReqT>>) - Method in class org.grpcmock.definitions.stub.BidiStreamingMethodStubBuilderImpl
- willProxyTo(Function<StreamObserver<RespT>, StreamObserver<ReqT>>) - Method in class org.grpcmock.definitions.stub.ClientStreamingMethodStubBuilderImpl
- willProxyTo(Function<StreamObserver<RespT>, StreamObserver<ReqT>>) - Method in interface org.grpcmock.definitions.stub.steps.StreamRequestProxyResponseBuilderStep
-
Defines a proxying response, which will proxy the request to given
Response. - willReturn(Status) - Method in interface org.grpcmock.definitions.stub.steps.SingleResponseBuilderStep
-
Defines a exception
Responsethat will terminate the request. - willReturn(Function<ReqT, RespT>) - Method in interface org.grpcmock.definitions.stub.steps.SingleRequestProxyResponseBuilderStep
-
Defines a proxying response, which is built based on received request.
- willReturn(List<RespT>) - Method in interface org.grpcmock.definitions.stub.steps.StreamResponseBuilderStep
-
Defines a stream
Response, which can respond with multipleResponseAction. - willReturn(ExceptionResponseActionBuilder) - Method in class org.grpcmock.definitions.stub.ClientStreamingMethodStubBuilderImpl
- willReturn(ExceptionResponseActionBuilder) - Method in class org.grpcmock.definitions.stub.ServerStreamingMethodStubBuilderImpl
- willReturn(ExceptionResponseActionBuilder) - Method in interface org.grpcmock.definitions.stub.steps.SingleResponseBuilderStep
-
Defines a exception
Responsethat will terminate the request. - willReturn(ExceptionResponseActionBuilder) - Method in class org.grpcmock.definitions.stub.UnaryMethodStubBuilderImpl
- willReturn(ObjectResponseActionBuilder<RespT>) - Method in class org.grpcmock.definitions.stub.ClientStreamingMethodStubBuilderImpl
- willReturn(ObjectResponseActionBuilder<RespT>) - Method in class org.grpcmock.definitions.stub.ServerStreamingMethodStubBuilderImpl
- willReturn(ObjectResponseActionBuilder<RespT>) - Method in interface org.grpcmock.definitions.stub.steps.SingleResponseBuilderStep
-
Defines a single
Responsethat will be returned for the request and complete it. - willReturn(ObjectResponseActionBuilder<RespT>) - Method in class org.grpcmock.definitions.stub.UnaryMethodStubBuilderImpl
- willReturn(StreamResponseBuilder<RespT>) - Method in class org.grpcmock.definitions.stub.ServerStreamingMethodStubBuilderImpl
- willReturn(StreamResponseBuilder<RespT>) - Method in interface org.grpcmock.definitions.stub.steps.StreamResponseBuilderStep
-
Defines a stream
Responsethat will execute multipleResponseAction. - willReturn(RespT) - Method in interface org.grpcmock.definitions.stub.steps.SingleResponseBuilderStep
-
Defines a single
Responsethat will be returned for the request and complete it. - willReturn(RespT...) - Method in interface org.grpcmock.definitions.stub.steps.StreamResponseBuilderStep
-
Defines a stream
Response, which can respond with multipleResponseAction. - withDelay(Delay) - Method in class org.grpcmock.definitions.response.ExceptionResponseActionBuilderImpl
- withDelay(Delay) - Method in class org.grpcmock.definitions.response.ObjectResponseActionBuilderImpl
- withDelay(Delay) - Method in interface org.grpcmock.definitions.response.steps.DelayBuilderStep
-
Configure a
Delayfor the response action. - withFirstRequest(Predicate<ReqT>) - Method in interface org.grpcmock.definitions.matcher.steps.FirstRequestMatcherBuilderStep
-
Adds a request matcher for the stub, which will trigger only if incoming first request satisfies given
Predicate. - withFirstRequest(Predicate<ReqT>) - Method in interface org.grpcmock.definitions.matcher.steps.StreamRequestMatcherBuilderStep
-
Adds a requests' matcher, which checks if the first received request satisfies given
Predicate. - withFirstRequest(Predicate<ReqT>) - Method in class org.grpcmock.definitions.stub.BidiStreamingMethodStubBuilderImpl
- withFirstRequest(Predicate<ReqT>) - Method in class org.grpcmock.definitions.stub.ClientStreamingMethodStubBuilderImpl
- withFirstRequest(ReqT) - Method in interface org.grpcmock.definitions.matcher.steps.FirstRequestMatcherBuilderStep
-
Adds a request matcher for the stub, which will trigger only if incoming first request is equal to the provided one.
- withFirstRequest(ReqT) - Method in interface org.grpcmock.definitions.matcher.steps.StreamRequestMatcherBuilderStep
-
Adds a requests' matcher, which checks if the first received request is equal to given request object.
- withFixedDelay(long) - Method in interface org.grpcmock.definitions.response.steps.DelayBuilderStep
-
Configures a fixed
Delayin milliseconds for the response action. - withFixedDelay(Duration) - Method in interface org.grpcmock.definitions.response.steps.DelayBuilderStep
- withHeader(Metadata.Key<byte[]>, byte[]) - Method in interface org.grpcmock.definitions.matcher.steps.HeadersMatcherBuilderStep
-
Adds a binary header matcher for the stub, which will trigger only if the given header has binary value
Arrays.equals(byte[], byte[])to the provided one. - withHeader(Metadata.Key<String>, String) - Method in interface org.grpcmock.definitions.matcher.steps.HeadersMatcherBuilderStep
-
Adds a header matcher for the stub, which will trigger only if the given header has value equal to the provided one.
- withHeader(Metadata.Key<T>, Predicate<T>) - Method in class org.grpcmock.definitions.matcher.HeadersMatcherBuilderImpl
- withHeader(Metadata.Key<T>, Predicate<T>) - Method in interface org.grpcmock.definitions.matcher.steps.HeadersMatcherBuilderStep
-
Adds a header matcher for the stub, which will trigger only if the given header has value satisfying given
Predicate. - withHeader(Metadata.Key<T>, Predicate<T>) - Method in class org.grpcmock.definitions.stub.BidiStreamingMethodStubBuilderImpl
- withHeader(Metadata.Key<T>, Predicate<T>) - Method in class org.grpcmock.definitions.stub.ClientStreamingMethodStubBuilderImpl
- withHeader(Metadata.Key<T>, Predicate<T>) - Method in class org.grpcmock.definitions.stub.ServerStreamingMethodStubBuilderImpl
- withHeader(Metadata.Key<T>, Predicate<T>) - Method in class org.grpcmock.definitions.stub.UnaryMethodStubBuilderImpl
- withHeader(Metadata.Key<T>, Predicate<T>) - Method in class org.grpcmock.definitions.verification.RequestPatternBuilderImpl
- withHeader(String, String) - Method in interface org.grpcmock.definitions.matcher.steps.HeadersMatcherBuilderStep
-
Adds a header matcher for the stub, which will trigger only if the given header has value equal to the provided one.
- withHeader(String, Predicate<String>) - Method in interface org.grpcmock.definitions.matcher.steps.HeadersMatcherBuilderStep
-
Adds a header matcher for the stub, which will trigger only if the given header has value satisfying given
Predicate. - withNumberOfRequests(int) - Method in interface org.grpcmock.definitions.matcher.steps.StreamRequestMatcherBuilderStep
-
Adds a requests' matcher, which checks if received stream requests number is equal to provided one.
- withoutHeader(Metadata.Key<T>) - Method in interface org.grpcmock.definitions.matcher.steps.HeadersMatcherBuilderStep
-
Adds a header matcher for the stub, which will trigger only if the given header does not exist.
- withoutHeader(String) - Method in interface org.grpcmock.definitions.matcher.steps.HeadersMatcherBuilderStep
-
Adds a header matcher for the stub, which will trigger only if the given header does not exist.
- withRandomDelay(long) - Method in interface org.grpcmock.definitions.response.steps.DelayBuilderStep
-
Configures a random
Delaybetween 0 and given maxMilliseconds for the response action. - withRandomDelay(long, long) - Method in interface org.grpcmock.definitions.response.steps.DelayBuilderStep
-
Configures a random
Delaybetween given minMilliseconds and maxMilliseconds bounds in milliseconds for the response action. - withRandomDelay(Duration) - Method in interface org.grpcmock.definitions.response.steps.DelayBuilderStep
- withRandomDelay(Duration, Duration) - Method in interface org.grpcmock.definitions.response.steps.DelayBuilderStep
- withRequest(Predicate<ReqT>) - Method in class org.grpcmock.definitions.matcher.RequestMatcherBuilderImpl
- withRequest(Predicate<ReqT>) - Method in interface org.grpcmock.definitions.matcher.steps.RequestMatcherBuilderStep
-
Adds a request matcher for the stub, which will trigger only if incoming request satisfies given
Predicate. - withRequest(Predicate<ReqT>) - Method in class org.grpcmock.definitions.stub.ServerStreamingMethodStubBuilderImpl
- withRequest(Predicate<ReqT>) - Method in class org.grpcmock.definitions.stub.UnaryMethodStubBuilderImpl
- withRequest(Predicate<ReqT>) - Method in class org.grpcmock.definitions.verification.RequestPatternBuilderImpl
- withRequest(ReqT) - Method in interface org.grpcmock.definitions.matcher.steps.RequestMatcherBuilderStep
-
Adds a request matcher for the stub, which will trigger only if incoming request is equal to the provided one.
- withRequestAtIndex(int, Predicate<ReqT>) - Method in interface org.grpcmock.definitions.matcher.steps.StreamRequestMatcherBuilderStep
-
Adds a requests' matcher, which checks if a request at given index satisfies given
Predicate. - withRequestAtIndex(int, ReqT) - Method in interface org.grpcmock.definitions.matcher.steps.StreamRequestMatcherBuilderStep
-
Adds a requests' matcher, which checks if a request at given index is equal to given request object.
- withRequests(Predicate<List<ReqT>>) - Method in class org.grpcmock.definitions.matcher.RequestMatcherBuilderImpl
- withRequests(Predicate<List<ReqT>>) - Method in interface org.grpcmock.definitions.matcher.steps.StreamRequestMatcherBuilderStep
-
Adds a requests' matcher, which checks if all received stream requests satisfies given
Predicate. - withRequests(Predicate<List<ReqT>>) - Method in class org.grpcmock.definitions.verification.RequestPatternBuilderImpl
- withRequests(List<ReqT>) - Method in interface org.grpcmock.definitions.matcher.steps.StreamRequestMatcherBuilderStep
-
Adds a requests' matcher, which checks if all received stream requests are equal to provided list.
- withRequests(ReqT...) - Method in interface org.grpcmock.definitions.matcher.steps.StreamRequestMatcherBuilderStep
-
Adds a requests' matcher, which checks if all received stream requests are equal to provided array.
- withRequestsContaining(Predicate<ReqT>) - Method in interface org.grpcmock.definitions.matcher.steps.StreamRequestMatcherBuilderStep
-
Adds a requests' matcher, which checks if any of the received stream requests satisfies given
Predicate. - withRequestsContaining(ReqT) - Method in interface org.grpcmock.definitions.matcher.steps.StreamRequestMatcherBuilderStep
-
Adds a requests' matcher, which checks if any of the received stream requests is equal to given request object.
- withStatus(Predicate<Status>) - Method in class org.grpcmock.definitions.matcher.StatusMatcherBuilderImpl
- withStatus(Predicate<Status>) - Method in interface org.grpcmock.definitions.matcher.steps.StatusMatcherBuilderStep
-
Adds a close
Statusmatcher, which will check if the close status satisfies given predicate. - withStatus(Predicate<Status>) - Method in class org.grpcmock.definitions.verification.RequestPatternBuilderImpl
- withStatusCode(Status.Code) - Method in interface org.grpcmock.definitions.matcher.steps.StatusMatcherBuilderStep
-
Adds a close
Statusmatcher, which will check if the close status has the givenStatus.Code. - withStatusMessage(String) - Method in interface org.grpcmock.definitions.matcher.steps.StatusMatcherBuilderStep
-
Adds a close
Statusmatcher, which will check if the close status description is equal to given one. - withStatusOk() - Method in interface org.grpcmock.definitions.matcher.steps.StatusMatcherBuilderStep
-
Adds a close
Statusmatcher, which will check if the close status closed withStatus.Code.OK.
All Classes and Interfaces|All Packages|Serialized Form