You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Bilgin Ibryam (Updated) (JIRA)" <ji...@apache.org> on 2012/02/11 18:49:00 UTC

[jira] [Updated] (CAMEL-4538) Make CamelTestSupport return Registry instead of JndiRegistry in createRegistry method

     [ https://issues.apache.org/jira/browse/CAMEL-4538?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bilgin Ibryam updated CAMEL-4538:
---------------------------------

    Attachment: unnamed.diff

1. Introduced SimpleContext as data holder for SimpleRegitry()

2. Updated the tests to use createSimpleContext() instead of createRegistry() for binding data to the registry.

3. Refactored createRegistry() to return Registry instead of JndiRegistry

With these changes tests by default will use SimpleRegistry, but still will be able to JndiRegistrty when needed, by overriding the createRegistry() and use createJndiContext() method.


WDYT?
                
> Make CamelTestSupport return Registry instead of JndiRegistry in createRegistry method
> --------------------------------------------------------------------------------------
>
>                 Key: CAMEL-4538
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4538
>             Project: Camel
>          Issue Type: Improvement
>          Components: tests
>    Affects Versions: 2.8.0
>            Reporter: Maciej Prochniak
>            Priority: Minor
>             Fix For: 2.10.0
>
>         Attachments: CAMEL-4538, CAMEL-4538-v2, unnamed.diff
>
>
> Usually when we write camel unit tests we want to use SimpleRegistry, not JndiRegistry

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira