You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2015/10/29 08:11:27 UTC

[jira] [Resolved] (CAMEL-9266) MockEnpoind :: expectedBodiesReceived does not seem to work

     [ https://issues.apache.org/jira/browse/CAMEL-9266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-9266.
--------------------------------
    Resolution: Invalid
      Assignee: Claus Ibsen

Please use the mailing list / user forum to get help with this first.


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