On Tue, Nov 23, 2010 at 4:19 PM, John <[email protected]> wrote: > > 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? >
Have you tried switching to CamelSpringTestSupport? > 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. > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
