diff --git a/vertx-grpc-client/src/test/java/io/vertx/grpc/client/ClientRequestTest.java b/vertx-grpc-client/src/test/java/io/vertx/grpc/client/ClientRequestTest.java index 057cdc58..48a9b6ab 100644 --- a/vertx-grpc-client/src/test/java/io/vertx/grpc/client/ClientRequestTest.java +++ b/vertx-grpc-client/src/test/java/io/vertx/grpc/client/ClientRequestTest.java @@ -95,7 +95,7 @@ public void sayHello(HelloRequest request, StreamObserver responseOb Async test = should.async(); client = GrpcClient.client(vertx, new HttpClientOptions().setSsl(true) .setUseAlpn(true) - .setPemTrustOptions(cert.trustOptions())); + .setTrustOptions(cert.trustOptions())); client.request(SocketAddress.inetSocketAddress(8443, "localhost"), GreeterGrpc.getSayHelloMethod()) .onComplete(should.asyncAssertSuccess(callRequest -> { callRequest.response().onComplete(should.asyncAssertSuccess(callResponse -> { diff --git a/vertx-grpc-server/src/test/java/io/vertx/grpc/server/ServerRequestTest.java b/vertx-grpc-server/src/test/java/io/vertx/grpc/server/ServerRequestTest.java index d6d20e83..77d38945 100644 --- a/vertx-grpc-server/src/test/java/io/vertx/grpc/server/ServerRequestTest.java +++ b/vertx-grpc-server/src/test/java/io/vertx/grpc/server/ServerRequestTest.java @@ -66,7 +66,7 @@ public void testSSL(TestContext should) throws IOException { .setUseAlpn(true) .setPort(8443) .setHost("localhost") - .setPemKeyCertOptions(cert.keyCertOptions()), GrpcServer.server(vertx).callHandler(GreeterGrpc.getSayHelloMethod(), call -> { + .setKeyCertOptions(cert.keyCertOptions()), GrpcServer.server(vertx).callHandler(GreeterGrpc.getSayHelloMethod(), call -> { call.handler(helloRequest -> { HelloReply helloReply = HelloReply.newBuilder().setMessage("Hello " + helloRequest.getName()).build(); GrpcServerResponse response = call.response();