From a14261839430ffcd47f4316350ed4e6c46c33292 Mon Sep 17 00:00:00 2001 From: Lukas Dohmen Date: Fri, 2 Feb 2024 14:10:13 +0100 Subject: [PATCH] GH-488 - Remove deprecated ApplicationModuleListener from example. --- .../java/example/order/EventPublicationRegistryTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-modulith-examples/spring-modulith-example-full/src/test/java/example/order/EventPublicationRegistryTests.java b/spring-modulith-examples/spring-modulith-example-full/src/test/java/example/order/EventPublicationRegistryTests.java index ad11e639..110b9767 100644 --- a/spring-modulith-examples/spring-modulith-example-full/src/test/java/example/order/EventPublicationRegistryTests.java +++ b/spring-modulith-examples/spring-modulith-example-full/src/test/java/example/order/EventPublicationRegistryTests.java @@ -23,7 +23,7 @@ import lombok.RequiredArgsConstructor; import org.junit.jupiter.api.Test; import org.springframework.context.annotation.Import; -import org.springframework.modulith.ApplicationModuleListener; +import org.springframework.modulith.events.ApplicationModuleListener; import org.springframework.modulith.events.core.EventPublicationRegistry; import org.springframework.modulith.test.ApplicationModuleTest; import org.springframework.modulith.test.Scenario; @@ -51,7 +51,7 @@ class EventPublicationRegistryTests { var order = new Order(); scenario.stimulate(() -> orders.complete(order)) - .andWaitForStateChange(() -> listener.getEx()) + .andWaitForStateChange(listener::getEx) .andVerify(__ -> { assertThat(registry.findIncompletePublications()).hasSize(1); });