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

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

Frederic Gendebien created CAMEL-9266:
-----------------------------------------

             Summary: 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
            Priority: Minor


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)