Class GrpcTestBase
java.lang.Object
org.summerboot.jexpress.nio.grpc.test.GrpcTestBase
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected GrpcTestBase.TestConfig[]protected io.grpc.netty.shaded.io.grpc.netty.NettyChannelBuilderbuilderTestClient(String host, int port, String loadBalancingTargetScheme, KeyManagerFactory kmfClient, TrustManagerFactory tmfClient, String overrideAuthority) protected GRPCServerbuildTestServer(String host, int port, KeyManagerFactory kmfServer, TrustManagerFactory tmfServer, io.grpc.BindableService[] serviceImpls) protected abstract io.grpc.BindableService[]protected abstract voidrunClient(io.grpc.netty.shaded.io.grpc.netty.NettyChannelBuilder channelBuilder) protected voidrunServerAndClient(String host, int port, KeyManagerFactory kmfServer, TrustManagerFactory tmfServer, io.grpc.BindableService[] serviceImpls, String loadBalancingTargetScheme, KeyManagerFactory kmfClient, TrustManagerFactory tmfClient, String overrideAuthority) voidrunTest()protected voidtest2WayAuth(GrpcTestBase.TestConfig config)
-
Constructor Details
-
GrpcTestBase
public GrpcTestBase()
-
-
Method Details
-
getServerImpls
protected abstract io.grpc.BindableService[] getServerImpls() -
runTest
- Throws:
GeneralSecurityExceptionIOException
-
buildDefaultTestConfigs
-
test2WayAuth
protected void test2WayAuth(GrpcTestBase.TestConfig config) throws GeneralSecurityException, IOException - Throws:
GeneralSecurityExceptionIOException
-
runServerAndClient
protected void runServerAndClient(String host, int port, KeyManagerFactory kmfServer, TrustManagerFactory tmfServer, io.grpc.BindableService[] serviceImpls, String loadBalancingTargetScheme, KeyManagerFactory kmfClient, TrustManagerFactory tmfClient, String overrideAuthority) throws IOException - Throws:
IOException
-
runClient
protected abstract void runClient(io.grpc.netty.shaded.io.grpc.netty.NettyChannelBuilder channelBuilder) -
buildTestServer
protected GRPCServer buildTestServer(String host, int port, KeyManagerFactory kmfServer, TrustManagerFactory tmfServer, io.grpc.BindableService[] serviceImpls) throws IOException - Throws:
IOException
-
builderTestClient
protected io.grpc.netty.shaded.io.grpc.netty.NettyChannelBuilder builderTestClient(String host, int port, String loadBalancingTargetScheme, KeyManagerFactory kmfClient, TrustManagerFactory tmfClient, String overrideAuthority) throws SSLException - Throws:
SSLException
-