You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/03/11 15:38:30 UTC

[GitHub] [camel-quarkus] aldettinger commented on a change in pull request #876: Fixed kafka itests as @Inject is not supported in native tests

aldettinger commented on a change in pull request #876: Fixed kafka itests as @Inject is not supported in native tests
URL: https://github.com/apache/camel-quarkus/pull/876#discussion_r391063903
 
 

 ##########
 File path: integration-tests/kafka/src/test/java/org/apache/camel/quarkus/component/kafka/it/CamelKafkaTestResource.java
 ##########
 @@ -32,14 +31,6 @@
     private static final String CONFLUENT_PLATFORM_VERSION = "5.3.1";
 
     private KafkaContainer container;
-    private CamelMain main;
-
-    @Override
-    public void inject(Object testInstance) {
-        if (testInstance instanceof CamelKafkaTest) {
-            this.main = ((CamelKafkaTest) testInstance).main;
 
 Review comment:
   Note that this line would have been invoked in native mode only due to distinct class loaders. But then @Inject is not authorized.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services