You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2013/09/09 18:23:51 UTC

[jira] [Commented] (CAMEL-6715) camel-test-blueprint - Only one Camel context gets started on test startup

    [ https://issues.apache.org/jira/browse/CAMEL-6715?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13761987#comment-13761987 ] 

Claus Ibsen commented on CAMEL-6715:
------------------------------------

This is not intended for the camel-test to support multiple contexts in the same unit test. The CamelTestSupport classes is intended for a single CamelContext.


                
> camel-test-blueprint - Only one Camel context gets started on test startup
> --------------------------------------------------------------------------
>
>                 Key: CAMEL-6715
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6715
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-test
>    Affects Versions: 2.11.2, 2.12.0
>            Reporter: Eugene Tarasov
>            Priority: Minor
>         Attachments: JUnit_MultipleContexts.patch
>
>
> 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).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira