From e15bd375590eb779d327ce5c684baa1cdfc0c7a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Suszy=C5=84ski?= Date: Thu, 29 Aug 2019 22:08:56 +0200 Subject: [PATCH] Fix SonarCloud issues --- .../java/pl/wavesoftware/plugs/spring/PlugsContextIT.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); } }