Skip to content

Commit 792b69c

Browse files
committed
GH-355 - Polish Kotlin code samples in event section of reference documentation.
1 parent e8898c1 commit 792b69c

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/docs/antora/modules/ROOT/pages/events.adoc

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)