AW: Calling count function in the camel route

2013-02-04 Thread jhm
"count", 3); template.sendBody("direct:in", ""); mock.assertIsSatisfied(); } Jan -Ursprüngliche Nachricht- Von: Jan Matèrne (jhm) [mailto:apa...@materne.de] Gesendet: Montag, 4. Februar 2013 14:35 An: users@camel.apache.org Betreff: AW: Calling count f

AW: Calling count function in the camel route

2013-02-04 Thread jhm
I tried some of mock.expect* methods, but I couldnt write the assert with one of them. Is this possible? Jan -Ursprüngliche Nachricht- Von: Jan Matèrne (jhm) [mailto:apa...@materne.de] Gesendet: Montag, 4. Februar 2013 14:24 An: users@camel.apache.org Betreff: AW: Calling count function

AW: Calling count function in the camel route

2013-02-04 Thread jhm
Played a little bit with that. This example works for me. cheers Jan public class XpathCountTest extends CamelTestSupport { @Test public void count() { final MockEndpoint mock = getMockEndpoint("mock:result"); mock.expectedMessageCount(1);