Re: Help with mocking a filter bean method call

2013-02-16 Thread Henryk Konsek
> I will be going the route of using the spring based registry. Looks like > exactly what I need and have had good luck with it so far. Great to hear that. Feel free to drop us a line if you need any further advice. -- Henryk Konsek http://henryk-konsek.blogspot.com

Re: Help with mocking a filter bean method call

2013-02-15 Thread whelmingbytes
ssage in context: http://camel.465427.n5.nabble.com/Help-with-mocking-a-filter-bean-method-call-tp5727543p5727665.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Help with mocking a filter bean method call

2013-02-14 Thread Henryk Konsek
> In my actual test, my bean is loaded up with spring > component scan (most of the tests that use this are integration tests) Actually I would not advice putting Mockito mocks into integration tests, as the latter approach makes your test hard to maintain and control. But of course you can confi

Re: Help with mocking a filter bean method call

2013-02-13 Thread whelmingbytes
. Thanks again! -- View this message in context: http://camel.465427.n5.nabble.com/Help-with-mocking-a-filter-bean-method-call-tp5727543p5727552.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Help with mocking a filter bean method call

2013-02-13 Thread Henryk Konsek
Hi Spencer, Welcome to our community :) . > from('direct:start').filter().method('bean', > 'matches').to('mock:endpoint').stop() > > In my test, I am trying to mock out the method 'matches' call using mockito. The approach of mine choice would be to register Mockito mock in the Camel registry un

Help with mocking a filter bean method call

2013-02-13 Thread whelmingbytes
this message in context: http://camel.465427.n5.nabble.com/Help-with-mocking-a-filter-bean-method-call-tp5727543.html Sent from the Camel - Users mailing list archive at Nabble.com.