You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ji...@apache.org on 2023/08/08 07:27:03 UTC

[camel-quarkus] branch camel-main updated: fixed compilation of google tests

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

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


The following commit(s) were added to refs/heads/camel-main by this push:
     new d0a2acb5e3 fixed compilation of google tests
d0a2acb5e3 is described below

commit d0a2acb5e3ed3b32b33cb5fc7b4374fcfc54d4b4
Author: JiriOndrusek <on...@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();
             }