| Modifier and Type | Method and Description |
|---|---|
static <RespT> ObjectResponseActionBuilder<RespT> |
GrpcMock.response(RespT responseObject)
Returns a response action, which will send out the given response object via
StreamObserver.onNext(V). |
| Modifier and Type | Method and Description |
|---|---|
static <RespT> ObjectStreamResponseBuilderStep<RespT> |
GrpcMock.stream(ObjectResponseActionBuilder<RespT> responseAction)
Returns a stream response, which can respond with multiple
ResponseAction. |
| Modifier and Type | Class and Description |
|---|---|
class |
ObjectResponseActionBuilderImpl<RespT> |
| Modifier and Type | Method and Description |
|---|---|
ObjectStreamResponseBuilderStep<RespT> |
StreamResponseBuilderImpl.and(ObjectResponseActionBuilder<RespT> responseAction) |
| Modifier and Type | Method and Description |
|---|---|
ObjectStreamResponseBuilderStep<RespT> |
ObjectStreamResponseBuilderStep.and(ObjectResponseActionBuilder<RespT> responseAction)
Defines the next
ResponseAction in the stream response. |
| Modifier and Type | Method and Description |
|---|---|
BUILDER |
NextSingleResponseBuilderStep.nextWillReturn(ObjectResponseActionBuilder<RespT> response)
Defines a single
Response for subsequent request call to this stub. |
BUILDER |
SingleResponseBuilderStep.willReturn(ObjectResponseActionBuilder<RespT> response)
Defines a single
Response that will be returned for the request and complete it. |
Copyright © 2023. All rights reserved.