Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-20784

CamelTestSupport: Add an option for camel quarkus to customize unsupported check

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.7.0
    • 4.x
    • camel-test
    • None
    • Unknown

    Description

      I introduced an wrong condition into the CamelTestSupport a long time ago, The issue can not be detected, because camel-quarkus overrode the logic in its own class. The refactorhttps://github.com/apache/camel/commit/427c19faa5d2e5a3534f244e30355ec7134422e5 of that code  revealed that mistake.

       

      The proper condition for the Camel-quarkus test is not existence of annotation 

      org.apache.camel.quarkus.test.CamelQuarkusTest (which does not exist)

      , but inheritance from 

      org.apache.camel.quarkus.test.CamelQuarkusTestSupport 

      Ideally the fix would use

      clazz.isAssignableFrom(CamelQuarkusTestSupport.class). 

      Unfortunately Camel does not know about CamelQuarkusTestSupport, therefore it hoas to be solved differently.

      Attachments

        Activity

          People

            jondruse Jiri Ondrusek
            jondruse Jiri Ondrusek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: