Package org.grpcmock.junit5
Class GrpcMockExtension.Builder
java.lang.Object
org.grpcmock.junit5.GrpcMockExtension.Builder
- Enclosing class:
- GrpcMockExtension
-
Method Summary
Modifier and TypeMethodDescriptionbuild()withExecutor(Executor executor) DefinesExecutorto be used for the gRPC Mock server.withInterceptor(io.grpc.ServerInterceptor interceptor) DefinesServerInterceptorfor the gRPC Mock server.withPort(int port) Defines the port value for the gRPC Mock server.withTransportSecurity(File certChain, File privateKey) Defines certChain and privateKey files in order to configure server security viaServerBuilder.useTransportSecurity(File, File).withTransportSecurity(String certChain, String privateKey) Defines certChain and privateKey files in order to configure server security viaServerBuilder.useTransportSecurity(File, File).
-
Method Details
-
withPort
Defines the port value for the gRPC Mock server. If set to0a random free port will be picked. -
withExecutor
-
withInterceptor
DefinesServerInterceptorfor the gRPC Mock server. -
withTransportSecurity
public GrpcMockExtension.Builder withTransportSecurity(@Nonnull File certChain, @Nonnull File privateKey) Defines certChain and privateKey files in order to configure server security viaServerBuilder.useTransportSecurity(File, File). -
withTransportSecurity
public GrpcMockExtension.Builder withTransportSecurity(@Nonnull String certChain, @Nonnull String privateKey) Defines certChain and privateKey files in order to configure server security viaServerBuilder.useTransportSecurity(File, File). -
build
-