public interface SingleResponseBuilderStep<BUILDER extends BuilderStep,RespT> extends BuilderStep
| Modifier and Type | Method and Description |
|---|---|
BUILDER |
willReturn(ExceptionResponseActionBuilder response)
Defines a exception
Response that will terminate the request. |
BUILDER |
willReturn(ObjectResponseActionBuilder<RespT> response)
Defines a single
Response that will be returned for the request and complete it. |
default BUILDER |
willReturn(RespT response)
Defines a single
Response that will be returned for the request and complete it. |
default BUILDER |
willReturn(io.grpc.Status status)
Defines a exception
Response that will terminate the request. |
BUILDER willReturn(@Nonnull ObjectResponseActionBuilder<RespT> response)
Response that will be returned for the request and complete it.BUILDER willReturn(@Nonnull ExceptionResponseActionBuilder response)
Response that will terminate the request.default BUILDER willReturn(@Nonnull RespT response)
Defines a single Response that will be returned for the request and complete it.
In order to configure a Delay for the response see GrpcMock.response(RespT)
method.
default BUILDER willReturn(@Nonnull io.grpc.Status status)
Defines a exception Response that will terminate the request.
In order to configure a Delay for the response see GrpcMock.statusException(io.grpc.Status)
method.
Copyright © 2023. All rights reserved.