"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
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
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);