Skip to content

Commit 0e87964

Browse files
SimonVerhoevenodrotbohm
authored andcommitted
GH-236 - Code fixes in Introducing Spring Modulith document.
Replaced the deprecated matchingMapped with matching, and adapted the way the orderId is read from the event.
1 parent 0e6d6ab commit 0e87964

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

etc/introducing-spring-modulith.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class OrderIntegrationTests {
144144
145145
// Find all OrderCompleted events referring to our reference order
146146
var matchingMapped = events.ofType(OrderCompleted.class)
147-
.matchingMapped(OrderCompleted::getOrderId, reference.getId()::equals);
147+
.matching(OrderCompleted::orderId, reference.getId());
148148
149149
assertThat(matchingMapped).hasSize(1);
150150
}

0 commit comments

Comments
 (0)