Hi

What Camel version do you use from -> to in the upgrade.

What test case do you use. Can you post some code.
createRegistry is called in the Java CamelTestSupport class which works fine.


On Wed, Oct 30, 2013 at 5:29 PM, kraythe . <kray...@gmail.com> wrote:
> In reading this url <http://camel.apache.org/camel-test.html> it says that
> we should override createRegistry() in order to bind additional objects
> into the registry in a test. unfortunately this doesn't work as the old
> startup has been changed in favor of the option to initialize per class or
> per method. Now I have to do the following code to get something in the
> registry. In my createRouteBuilder method I write:
>
> *final* SimpleRegistry reg = (SimpleRegistry)
> ((PropertyPlaceholderDelegateRegistry)
> getContext().getRegistry()).getRegistry();
>
> reg.put("testdb", dataSource);
>
> The documentation needs to be updated or, better yet, createRegistry needs
> to be put back into the loop. If you override it now and put inside a trace
> println, it will never get printed.
>
> *Robert Simmons Jr. MSc. - Lead Java Architect @ EA*
> *Author of: Hardcore Java (2003) and Maintainable Java (2012)*
> *LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39*



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to