Skip to content

Commit f9f37fe

Browse files
committed
GH-294 - Additional integration test for (Completed|Incomplete)EventPublications bean registration.
1 parent 2148328 commit f9f37fe

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

spring-modulith-events/spring-modulith-events-core/src/test/java/org/springframework/modulith/events/config/EventPublicationAutoConfigurationIntegrationTests.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
3636
import org.springframework.boot.test.context.runner.ContextConsumer;
3737
import org.springframework.context.annotation.AdviceMode;
38+
import org.springframework.modulith.events.CompletedEventPublications;
39+
import org.springframework.modulith.events.IncompleteEventPublications;
3840
import org.springframework.modulith.events.config.EventPublicationAutoConfiguration.AsyncPropertiesDefaulter;
3941
import org.springframework.modulith.events.core.EventPublicationRegistry;
4042
import org.springframework.modulith.events.core.EventPublicationRepository;
@@ -125,6 +127,16 @@ void wiresCustomClockIntoEventPublicationRegistryIfConfigured() {
125127
});
126128
}
127129

130+
@Test // GH-294
131+
void exposesCompletedAndIncompleteEventPublications() {
132+
133+
basicSetup().run(context -> {
134+
assertThat(context)
135+
.hasSingleBean(CompletedEventPublications.class)
136+
.hasSingleBean(IncompleteEventPublications.class);
137+
});
138+
}
139+
128140
private <T> ContextConsumer<AssertableApplicationContext> expect(Function<Shutdown, T> extractor,
129141
T expected) {
130142

0 commit comments

Comments
 (0)