camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olaf <omgolafg...@gmail.com>
Subject Re: How to mock a processor
Date Thu, 17 Oct 2013 19:11:00 GMT
Thanks! That helps a lot. 

Somehow, I can only mock with weaveBeId method:

weaveById("ReplaceBodyProcessor").replace().to("mock:ReplaceBodyProcessor");

then it is ReplaceBodyProcessor is skipped in test. 

If using 
weaveByToString(".*ReplaceBodyProcessor.*").replace().to("mock:ReplaceBodyProcessor"); 

or public String isMockEndpoints() {return "*";}

my test fails. What am I doing wrong?




--
View this message in context: http://camel.465427.n5.nabble.com/How-to-mock-a-processor-tp5741786p5741793.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message