camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John <John.Fans...@ateb.com>
Subject Testing a bean with @Resource
Date Tue, 23 Nov 2010 15:19:08 GMT

I'm using Camel 2.2.

I have a bean used in a route that is annotated with a couple of @Resource
objects that are injected via Spring. The bean also calls the producer
template to forward requests to different routes.

I've tried to add mocks to the @Resource objects in a spring configuration
file that is referenced via @ContextConfiguration in my test class. This
seems to work ok, but I really want to create the camel route interceptors
to check on what the producer is doing in the bean.

Is there a way to load @Resource classes from the spring configuration file
if I switch to CamelSpringTestSupport using createApplicationContext?

Thanks,

-john


-- 
View this message in context: http://camel.465427.n5.nabble.com/Testing-a-bean-with-Resource-tp3276944p3276944.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message