Skip to content

Commit

Permalink
Merge pull request #21 from wavesoftware/bugfix/fix-sonarcloud-status
Browse files Browse the repository at this point in the history
Fix SonarCloud issues
  • Loading branch information
cardil authored Aug 29, 2019
2 parents e106fc9 + e15bd37 commit 7ae885a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a href="mailto:[email protected]">Krzysztof Suszynski</a>
Expand Down Expand Up @@ -72,6 +73,8 @@ void osgiContainer() {
@DirtiesContext
void refreshContext() {
// when
publisher.publishEvent(new ContextClosedEvent(applicationContext));
assertThatCode(() ->
publisher.publishEvent(new ContextClosedEvent(applicationContext))
).doesNotThrowAnyException();
}
}

0 comments on commit 7ae885a

Please sign in to comment.