JiriOndrusek commented on a change in pull request #3458:
URL: https://github.com/apache/camel-quarkus/pull/3458#discussion_r785799193



##########
File path: 
integration-test-groups/aws2-quarkus-client/aws2-s3/src/main/java/org/apache/camel/quarkus/component/aws2/s3/it/Aws2S3QuarkusClientInvoker.java
##########
@@ -16,9 +16,15 @@
  */
 package org.apache.camel.quarkus.component.aws2.s3.it;
 
-import io.quarkus.test.junit.NativeImageTest;
+import javax.enterprise.context.ApplicationScoped;
+import javax.inject.Inject;
 
-@NativeImageTest
-class Aws2S3QuarkusClientIT extends Aws2S3QuarkusClientTest {
+import software.amazon.awssdk.services.s3.S3Client;
+
+@ApplicationScoped
+public class Aws2S3QuarkusClientInvoker {
+
+    @Inject
+    S3Client s3;

Review comment:
       To be honest I'm not sure. My guess is that in some cases, quarkus my 
optimize code and remove unused injections. But our tests does not allow it. So 
it works without it. (but it may be required with different configuration)




-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

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


Reply via email to