Hello,
I'm somewhat new to camel so sorry if I am not explaining the concepts very
well. I have a route that looks something like:
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.
I have successfully mocked route beans before with:
routeDefinition.adviceWith(context,new AdviceWithRouteBuilder() {
@Override
public void configure() throws Exception {
weaveById(camelId).replace().bean(bean, 'matches');
}
});
But, I am not sure how to go about swapping out my filters bean method call
with my mock. I have a gist here with a test if anyone is willing to take a
look or point me to some examples of this:
https://gist.github.com/whelmingbytes/446d0650b47ae082b626
Thanks!
-Spencer
--
View 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.