diff --git a/plugs-spring/src/test/java/pl/wavesoftware/plugs/spring/PlugsContextIT.java b/plugs-spring/src/test/java/pl/wavesoftware/plugs/spring/PlugsContextIT.java index ef7ac0d..efc209a 100644 --- a/plugs-spring/src/test/java/pl/wavesoftware/plugs/spring/PlugsContextIT.java +++ b/plugs-spring/src/test/java/pl/wavesoftware/plugs/spring/PlugsContextIT.java @@ -32,6 +32,7 @@ import pl.wavesoftware.plugs.core.OsgiContainer; import static org.assertj.core.api.Assertions.assertThat; +import static org.assertj.core.api.Assertions.assertThatCode; /** * @author Krzysztof Suszynski @@ -72,6 +73,8 @@ void osgiContainer() { @DirtiesContext void refreshContext() { // when - publisher.publishEvent(new ContextClosedEvent(applicationContext)); + assertThatCode(() -> + publisher.publishEvent(new ContextClosedEvent(applicationContext)) + ).doesNotThrowAnyException(); } }