Skip to content

Commit

Permalink
Fix SonarCloud issues
Browse files Browse the repository at this point in the history
  • Loading branch information
cardil committed Aug 29, 2019
1 parent e106fc9 commit e15bd37
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 e15bd37

Please sign in to comment.