Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-17886

MockValueBuilder behaves false positive

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Bug
    • 3.16.0
    • 3.17.0
    • camel-mock
    • None
    • Unknown

    Description

      If I change the following line:

      https://github.com/apache/camel/blob/camel-3.16.0/components/camel-mail/src/test/java/org/apache/camel/component/mail/RawMailMessageTest.java#L100

      To:

      mock.expectedBodyReceived().body().isNull();
      mock.expectedBodyReceived().body().isEqualTo(new Object());
      

      Then the test would still pass.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            bvahdat Babak Vahdat
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: