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 2021/12/14 09:33:53 UTC

[GitHub] [camel-quarkus] aldettinger commented on issue #1981: Mocking endpoints in camel-quarkus tests

aldettinger commented on issue #1981:
URL: https://github.com/apache/camel-quarkus/issues/1981#issuecomment-993348284


   Hey, great hack :)
   
   It reminds me of an e-mail with Dennis Holunder posted in the community
   with the subject "Testing route in Camel Quarkus".
   I think it reported that it was working in JVM mode and there was just an
   issue with logging. Not sure it's still the case anyway.
   
   My 2 cents,
   Alex
   
   On Tue, Dec 14, 2021 at 10:23 AM Amos Feng ***@***.***> wrote:
   
   > A simple hack way could be
   >
   > @QuarkusTest
   > public class TransactedTest extends CamelTestSupport {
   >     @Inject
   >     CamelContext context;
   >
   >     @Override
   >     protected CamelContext createCamelContext() throws Exception {
   >         return this.context;
   >     }
   > }
   >
   > you can check it out on camel-test-demo
   > <https://github.com/zhfeng/camel-test-demo>.
   >
   > —
   > You are receiving this because you were mentioned.
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/camel-quarkus/issues/1981#issuecomment-993339484>,
   > or unsubscribe
   > <https://github.com/notifications/unsubscribe-auth/AFJABNOJ65KG5MBPRUEVVILUQ4EKTANCNFSM4THJUCVA>
   > .
   > Triage notifications on the go with GitHub Mobile for iOS
   > <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
   > or Android
   > <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
   >
   >
   


-- 
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-unsubscribe@camel.apache.org

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