From 792b69c25ecb263eceab41f9bd292d135fed44c3 Mon Sep 17 00:00:00 2001 From: Oliver Drotbohm Date: Thu, 2 Nov 2023 08:26:00 +0100 Subject: [PATCH] GH-355 - Polish Kotlin code samples in event section of reference documentation. --- .../antora/modules/ROOT/pages/events.adoc | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/docs/antora/modules/ROOT/pages/events.adoc b/src/docs/antora/modules/ROOT/pages/events.adoc index 2516c0bd..4e800e89 100644 --- a/src/docs/antora/modules/ROOT/pages/events.adoc +++ b/src/docs/antora/modules/ROOT/pages/events.adoc @@ -423,11 +423,11 @@ class ExternalizationConfiguration { @Bean EventExternalizationConfiguration eventExternalizationConfiguration() { - return EventExternalizationConfiguration.externalizing() // <1> - .select(EventExternalizationConfiguration.annotatedAsExternalized()) // <2> - .mapping(SomeEvent.class, it -> …) // <3> - .routeKey(WithKeyProperty.class, WithKeyProperty::getKey) // <4> - .build(); + return EventExternalizationConfiguration.externalizing() // <1> + .select(EventExternalizationConfiguration.annotatedAsExternalized()) // <2> + .mapping(SomeEvent.class, it -> …) // <3> + .routeKey(WithKeyProperty.class, WithKeyProperty::getKey) // <4> + .build(); } } ---- @@ -441,11 +441,11 @@ class ExternalizationConfiguration { @Bean fun eventExternalizationConfiguration(): EventExternalizationConfiguration { - EventExternalizationConfiguration.externalizing() // <1> - .select(EventExternalizationConfiguration.annotatedAsExternalized()) // <2> - .mapping(SomeEvent::class, it -> …) // <3> - .routeKey(WithKeyProperty::class, WithKeyProperty::getKey) // <4> - .build() + EventExternalizationConfiguration.externalizing() // <1> + .select(EventExternalizationConfiguration.annotatedAsExternalized()) // <2> + .mapping(SomeEvent::class, it -> …) // <3> + .routeKey(WithKeyProperty::class, WithKeyProperty::getKey) // <4> + .build() } } ---- @@ -503,6 +503,7 @@ class OrderIntegrationTests { // … var matchingMapped = events.ofType(OrderCompleted::class) .matching(OrderCompleted::getOrderId, reference.getId()) + assertThat(matchingMapped).hasSize(1) } }