[ 
https://issues.apache.org/jira/browse/CAMEL-9266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14989098#comment-14989098
 ] 

Frederic Gendebien commented on CAMEL-9266:
-------------------------------------------

Sorry, I'll do that in the future. I just saw It has been resolved?

> MockEnpoind :: expectedBodiesReceived does not seem to work
> -----------------------------------------------------------
>
>                 Key: CAMEL-9266
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9266
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-test
>    Affects Versions: 2.14.3
>         Environment: Unit testing with Junit 4.12 and Spring 3.2.11.RELEASE
>            Reporter: Frederic Gendebien
>            Assignee: Claus Ibsen
>            Priority: Minor
>              Labels: test
>
> GIVEN: a mock endpoint : mock
> WHEN: I do this
>   mock.expectedMessageCount(1);
>   mock.expectedBodiesReceived("expected output");
>   mock.assertIsSatisfied();
> THEN: I get "expected <expected output> but was <null>"
> BUT: when I do this:
>   mock.expectedMessageCount(1);
>   mock.expectedMessagesMatches(body().isEqualTo("expected output"));
>   mock.assertIsSatisfied();
> THEN: it works...



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to