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/05/07 10:59:03 UTC

[jira] [Created] (CAMEL-3954) camel-test - Should use lazy loading of type converters to speedup unit testing

camel-test - Should use lazy loading of type converters to speedup unit testing
-------------------------------------------------------------------------------

                 Key: CAMEL-3954
                 URL: https://issues.apache.org/jira/browse/CAMEL-3954
             Project: Camel
          Issue Type: Improvement
          Components: camel-test, tests
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
             Fix For: 2.8.0


This makes unit tests faster with Camel.

End users can override the {{isLazyLoadingTypeConverter}} method from {{CamelTestSupport}} if they want to control the behavior.
If you return false, then its what it used to be before this change.

Notice that Camel will still by default always load all type converters on startup.
By enabling lazy loading during testing it allows most unit tests to run faster, in case they dont need any additional type converter from other camel components.

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

[jira] [Commented] (CAMEL-3954) camel-test - Should use lazy loading of type converters to speedup unit testing

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

Claus Ibsen commented on CAMEL-3954:
------------------------------------

See nabble
http://camel.465427.n5.nabble.com/Conceptual-correctness-of-using-Camel-Unit-Tests-tp4372286p4372286.html

> camel-test - Should use lazy loading of type converters to speedup unit testing
> -------------------------------------------------------------------------------
>
>                 Key: CAMEL-3954
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3954
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-test, tests
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.8.0
>
>
> This makes unit tests faster with Camel.
> End users can override the {{isLazyLoadingTypeConverter}} method from {{CamelTestSupport}} if they want to control the behavior.
> If you return false, then its what it used to be before this change.
> Notice that Camel will still by default always load all type converters on startup.
> By enabling lazy loading during testing it allows most unit tests to run faster, in case they dont need any additional type converter from other camel components.

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

[jira] [Resolved] (CAMEL-3954) camel-test - Should use lazy loading of type converters to speedup unit testing

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

Claus Ibsen resolved CAMEL-3954.
--------------------------------

    Resolution: Fixed

There is a isLazyLoadingTypeConverter method on CamelTestSupport that controls this. Its enabled by default which speed up unit testing.

> camel-test - Should use lazy loading of type converters to speedup unit testing
> -------------------------------------------------------------------------------
>
>                 Key: CAMEL-3954
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3954
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-test, tests
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.8.0
>
>
> This makes unit tests faster with Camel.
> End users can override the {{isLazyLoadingTypeConverter}} method from {{CamelTestSupport}} if they want to control the behavior.
> If you return false, then its what it used to be before this change.
> Notice that Camel will still by default always load all type converters on startup.
> By enabling lazy loading during testing it allows most unit tests to run faster, in case they dont need any additional type converter from other camel components.

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