jamesnetherton commented on a change in pull request #2370:
URL: https://github.com/apache/camel-quarkus/pull/2370#discussion_r600755683



##########
File path: 
integration-tests/grpc/src/main/java/org/apache/camel/quarkus/component/grpc/it/GrpcRoute.java
##########
@@ -16,22 +16,33 @@
  */
 package org.apache.camel.quarkus.component.grpc.it;
 
+import java.util.Optional;
+
 import org.apache.camel.Message;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.quarkus.component.grpc.it.model.PingRequest;
 import org.apache.camel.quarkus.component.grpc.it.model.PongResponse;
+import org.eclipse.microprofile.config.Config;
+import org.eclipse.microprofile.config.ConfigProvider;
 
 public class GrpcRoute extends RouteBuilder {
 
     @Override
     public void configure() throws Exception {
-        
from("grpc://localhost:9000/org.apache.camel.quarkus.component.grpc.it.model.PingPong?synchronous=true")
-                .process(exchange -> {
-                    final Message message = exchange.getMessage();
-                    final PingRequest request = 
message.getBody(PingRequest.class);
-                    final PongResponse response = 
PongResponse.newBuilder().setPongName(request.getPingName() + " PONG")
-                            .setPongId(request.getPingId()).build();
-                    message.setBody(response);
-                });
+        
fromF("grpc://localhost:%d/org.apache.camel.quarkus.component.grpc.it.model.PingPong?synchronous=true",

Review comment:
       Well the gRPC tests passed so I guess its fine to have this on master 
now.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to