@@ -423,11 +423,11 @@ class ExternalizationConfiguration {
423423 @Bean
424424 EventExternalizationConfiguration eventExternalizationConfiguration() {
425425
426- return EventExternalizationConfiguration.externalizing() // <1>
427- .select(EventExternalizationConfiguration.annotatedAsExternalized()) // <2>
428- .mapping(SomeEvent.class, it -> …) // <3>
429- .routeKey(WithKeyProperty.class, WithKeyProperty::getKey) // <4>
430- .build();
426+ return EventExternalizationConfiguration.externalizing() // <1>
427+ .select(EventExternalizationConfiguration.annotatedAsExternalized()) // <2>
428+ .mapping(SomeEvent.class, it -> …) // <3>
429+ .routeKey(WithKeyProperty.class, WithKeyProperty::getKey) // <4>
430+ .build();
431431 }
432432}
433433----
@@ -441,11 +441,11 @@ class ExternalizationConfiguration {
441441 @Bean
442442 fun eventExternalizationConfiguration(): EventExternalizationConfiguration {
443443
444- EventExternalizationConfiguration.externalizing() // <1>
445- .select(EventExternalizationConfiguration.annotatedAsExternalized()) // <2>
446- .mapping(SomeEvent::class, it -> …) // <3>
447- .routeKey(WithKeyProperty::class, WithKeyProperty::getKey) // <4>
448- .build()
444+ EventExternalizationConfiguration.externalizing() // <1>
445+ .select(EventExternalizationConfiguration.annotatedAsExternalized()) // <2>
446+ .mapping(SomeEvent::class, it -> …) // <3>
447+ .routeKey(WithKeyProperty::class, WithKeyProperty::getKey) // <4>
448+ .build()
449449 }
450450}
451451----
@@ -503,6 +503,7 @@ class OrderIntegrationTests {
503503 // …
504504 var matchingMapped = events.ofType(OrderCompleted::class)
505505 .matching(OrderCompleted::getOrderId, reference.getId())
506+
506507 assertThat(matchingMapped).hasSize(1)
507508 }
508509}
0 commit comments