Skip to content

Commit a142618

Browse files
lukasdocroodrotbohm
authored andcommitted
GH-488 - Remove deprecated ApplicationModuleListener from example.
1 parent b40b453 commit a142618

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-modulith-examples/spring-modulith-example-full/src/test/java/example/order/EventPublicationRegistryTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
import org.junit.jupiter.api.Test;
2525
import org.springframework.context.annotation.Import;
26-
import org.springframework.modulith.ApplicationModuleListener;
26+
import org.springframework.modulith.events.ApplicationModuleListener;
2727
import org.springframework.modulith.events.core.EventPublicationRegistry;
2828
import org.springframework.modulith.test.ApplicationModuleTest;
2929
import org.springframework.modulith.test.Scenario;
@@ -51,7 +51,7 @@ void leavesPublicationIncompleteForFailingListener(Scenario scenario) throws Exc
5151
var order = new Order();
5252

5353
scenario.stimulate(() -> orders.complete(order))
54-
.andWaitForStateChange(() -> listener.getEx())
54+
.andWaitForStateChange(listener::getEx)
5555
.andVerify(__ -> {
5656
assertThat(registry.findIncompletePublications()).hasSize(1);
5757
});

0 commit comments

Comments
 (0)