diff --git a/etc/introducing-spring-modulith.adoc b/etc/introducing-spring-modulith.adoc index ad8a5372..d5d3a99d 100644 --- a/etc/introducing-spring-modulith.adoc +++ b/etc/introducing-spring-modulith.adoc @@ -144,7 +144,7 @@ class OrderIntegrationTests { // Find all OrderCompleted events referring to our reference order var matchingMapped = events.ofType(OrderCompleted.class) - .matchingMapped(OrderCompleted::getOrderId, reference.getId()::equals); + .matching(OrderCompleted::orderId, reference.getId()); assertThat(matchingMapped).hasSize(1); }