This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch camel-main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git

commit 05828a3551407ee25a3eb1978c9479da03bb3a0f
Author: JiriOndrusek <ondrusek.j...@gmail.com>
AuthorDate: Tue Aug 8 09:25:49 2023 +0200

    fixed compilation of google tests
---
 .../camel/quarkus/component/google/it/GoogleDriveResource.java      | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/integration-tests/google/src/main/java/org/apache/camel/quarkus/component/google/it/GoogleDriveResource.java
 
b/integration-tests/google/src/main/java/org/apache/camel/quarkus/component/google/it/GoogleDriveResource.java
index 55cb72a1d8..2cdda8e308 100644
--- 
a/integration-tests/google/src/main/java/org/apache/camel/quarkus/component/google/it/GoogleDriveResource.java
+++ 
b/integration-tests/google/src/main/java/org/apache/camel/quarkus/component/google/it/GoogleDriveResource.java
@@ -48,9 +48,9 @@ public class GoogleDriveResource {
     @POST
     @Consumes(MediaType.TEXT_PLAIN)
     @Produces(MediaType.TEXT_PLAIN)
-    public Response createFile(String title) throws Exception {
+    public Response createFile(String name) throws Exception {
         File fileMetadata = new File();
-        fileMetadata.setTitle(title);
+        fileMetadata.setName(name);
         HttpContent mediaContent = new ByteArrayContent("text/plain",
                 "Hello Camel Quarkus Google 
Drive".getBytes(StandardCharsets.UTF_8));
 
@@ -71,7 +71,7 @@ public class GoogleDriveResource {
         try {
             File response = 
producerTemplate.requestBody("google-drive://drive-files/get?inBody=fileId", 
fileId, File.class);
             if (response != null) {
-                return Response.ok(response.getTitle()).build();
+                return Response.ok(response.getName()).build();
             } else {
                 return Response.status(Response.Status.NOT_FOUND).build();
             }

Reply via email to