citrusframework / citrus

Framework for automated integration tests with focus on messaging integration
https://citrusframework.org
Apache License 2.0
460 stars 137 forks source link

Typo in message selector documentation #1265

Closed zackzack38 closed 1 week ago

zackzack38 commented 1 week ago

Citrus Version 4.3.3 and previous versions

Expected behavior In actions-receive.adoc the CitrusTest for a "message selector inside a receiving action" initializes a hashMap for the test.

Actual behavior In actions-receive.adoc the CitrusTest for a "message selector inside a receiving action" initializes a hasMap for the test.

Test case sample

@CitrusTest
public void selectorTest() {
    Map<String, String> selectorMap = new HasMap<>();
    selectorMap.put("correlationId", "Cx1x123456789");
    selectorMap.put("operation", "getOrders");

    $(receive(someEndpoint)
        .selector(selectorMap)
        .message()
        .body("...")
    );
}
christophd commented 1 week ago

Fixed with #1266