camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpalmer1026 <>
Subject assertMockEndpointsSatisfied Question
Date Tue, 05 Apr 2011 15:52:54 GMT

I'm trying to use the assertMockEndpointsSatisfied() method to assert that
all the expectations of the Mock endpoints are valid. In my test, I'm
passing in 2 messages to a topic and calling mock.expectedMessageCount(3)
and the test is passing (I can actually pass in any arbitrary number to
expectedMessageCount() method and the test will still pass). My code is as

    public void testQuote() throws Exception {
        MockEndpoint mock = getMockEndpoint("mock:quote");
        mock.expectedBodiesReceivedInAnyOrder("test 1", "test 2");

        template.sendBody("jms:topic:quote", "test 1");
        template.sendBody("jms:topic:quote", "test 2");


Does anyone have any ideas what might be causing this to fail?

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message