camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwijngaa <rino.van.wijngaar...@gmail.com>
Subject createRegistry not called in CamelSpringTestSupport
Date Thu, 26 Feb 2015 10:59:25 GMT
Hi,

I want to register a datasource in my junit test (that extends
CamelSpringTestSupport)
but noticed that createRegistry is only called when directly extending from
CamelTestSupport

    @Override
    protected JndiRegistry createRegistry() throws Exception {
        JndiRegistry jndi = super.createRegistry();
        jndi.bind("testDataSource", db);
        return jndi;
    }


How do i make this work in tests that extend from CamelSpringTestSupport ?

I'm using camel 2.12
Regards
Rino



--
View this message in context: http://camel.465427.n5.nabble.com/createRegistry-not-called-in-CamelSpringTestSupport-tp5763207.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message