camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frederic Gendebien (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-9266) MockEnpoind :: expectedBodiesReceived does not seem to work
Date Wed, 28 Oct 2015 14:42:27 GMT
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)

Mime
View raw message