You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2011/08/17 13:12:27 UTC

[jira] [Created] (CAMEL-4343) Add method to test kit to control if CamelContext should be auto started or not

Add method to test kit to control if CamelContext should be auto started or not
-------------------------------------------------------------------------------

                 Key: CAMEL-4343
                 URL: https://issues.apache.org/jira/browse/CAMEL-4343
             Project: Camel
          Issue Type: Improvement
          Components: camel-test
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
            Priority: Minor
             Fix For: 2.9.0


By default CamelContext is started when using the Camel test kit. We should add some method people can override to more easily control if CamelContext should be started or not.

This works well with advice with, where people may replace endpoints, remove parts of routes, etc. So we should prefer to start CamelContext *after* the advice has been executed.

For example people should then be able to run the tests without have X components on the classpath, if they got replace in the advice.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4343) Add method to test kit to control if CamelContext should be auto started or not

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13087739#comment-13087739 ] 

Claus Ibsen commented on CAMEL-4343:
------------------------------------

See updated wiki page at advice with

> Add method to test kit to control if CamelContext should be auto started or not
> -------------------------------------------------------------------------------
>
>                 Key: CAMEL-4343
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4343
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-test
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.9.0
>
>
> By default CamelContext is started when using the Camel test kit. We should add some method people can override to more easily control if CamelContext should be started or not.
> This works well with advice with, where people may replace endpoints, remove parts of routes, etc. So we should prefer to start CamelContext *after* the advice has been executed.
> For example people should then be able to run the tests without have X components on the classpath, if they got replace in the advice.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CAMEL-4343) Add method to test kit to control if CamelContext should be auto started or not

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-4343.
--------------------------------

    Resolution: Fixed

> Add method to test kit to control if CamelContext should be auto started or not
> -------------------------------------------------------------------------------
>
>                 Key: CAMEL-4343
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4343
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-test
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.9.0
>
>
> By default CamelContext is started when using the Camel test kit. We should add some method people can override to more easily control if CamelContext should be started or not.
> This works well with advice with, where people may replace endpoints, remove parts of routes, etc. So we should prefer to start CamelContext *after* the advice has been executed.
> For example people should then be able to run the tests without have X components on the classpath, if they got replace in the advice.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira