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

camel-test-blueprint - Only one Camel context gets started on test startup

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.11.2, 2.12.0
    • 3.0.0.RC1, 3.0.0
    • camel-test, osgi
    • None
    • Unknown

    Description

      In a test made with camel-test-blueprint, and where there is more than one Camel context per Bundle, only one of them gets started. Actually this problem was introduced with the fix for CAMEL-6524. Before the fix every Camel Context would be started after it was created. Now only a context which is "associated" with the test is getting started.

      For camel-test-spring there is a similar problem. Though it looks to me that in spring multiple contexts didnt work even before CAMEL-6524.

      I've attached a patch that introduces a simple junit test for this problem (for both blueprint and spring).

      Attachments

        1. JUnit_MultipleContexts.patch
          14 kB
          Ievgen Tarasov

        Activity

          People

            davsclaus Claus Ibsen
            eugene.tarasov Ievgen Tarasov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: