Skip to content

Commit

Permalink
GH-236 - Code fixes in Introducing Spring Modulith document.
Browse files Browse the repository at this point in the history
Replaced the deprecated matchingMapped with matching, and adapted the way the orderId is read from the event.
  • Loading branch information
SimonVerhoeven authored and odrotbohm committed Jul 10, 2023
1 parent 0e6d6ab commit 0e87964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etc/introducing-spring-modulith.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 0e87964

Please sign in to comment.