Skip to content

Commit

Permalink
GH-488 - Remove deprecated ApplicationModuleListener from example.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Dohmen authored and odrotbohm committed Feb 14, 2024
1 parent b40b453 commit a142618
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

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;
Expand Down Expand Up @@ -51,7 +51,7 @@ void leavesPublicationIncompleteForFailingListener(Scenario scenario) throws Exc
var order = new Order();

scenario.stimulate(() -> orders.complete(order))
.andWaitForStateChange(() -> listener.getEx())
.andWaitForStateChange(listener::getEx)
.andVerify(__ -> {
assertThat(registry.findIncompletePublications()).hasSize(1);
});
Expand Down

0 comments on commit a142618

Please sign in to comment.