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 2022/08/16 18:37:00 UTC

[jira] [Commented] (CAMEL-18396) NotifyBuilder.matches returns always true in conjunction with NotifyBuilderMatcher usage

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

Claus Ibsen commented on CAMEL-18396:
-------------------------------------

Its because its using the ...InAnyOrder which wont work with the notify builder. If you use the ones that are not inAnyOrder. then it works

This requires some extra work to trigger assertion checks at some other stages to make the matcher output its result correctly.

> NotifyBuilder.matches returns always true in conjunction with NotifyBuilderMatcher usage
> ----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-18396
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18396
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core, camel-test
>    Affects Versions: 3.18.1
>            Reporter: Martin Frei
>            Priority: Trivial
>             Fix For: 3.19.0
>
>
> Take the following test as example:
> [https://github.com/apache/camel/blob/camel-3.18.1/core/camel-core/src/test/java/org/apache/camel/builder/NotifyBuilderTest.java#L703]
> And change the line to:
> {{mock.expectedBodiesReceivedInAnyOrder("XXXXX", "Bye World", "Hi World");}}
> The test would still pass.
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)