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

AbstractCamelTestNGSpringContextTests does not support @UseAdviceWith when used with Spring boot

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 2.17.3
    • None
    • camel-test
    • None
    • Unknown

    Description

      CamelContext is always started even with @UseAdviceWith.
      CamelContext is started when camel route bean is refreshed during the Spring start up.

      Looks like the CamelSpringBootJUnit4ClassRunner gets around the problem by setting

      System.setProperty("skipStartingCamelContext", "true");
      

      which is missing in the CamelTestNG version.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              chikim79 Chi Kim
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: