Fix checkstyle issue caused by polish commit

See gh-22946
This commit is contained in:
Phillip Webb
2020-08-28 15:30:27 -07:00
parent 38db582af1
commit 611447c4d5

View File

@@ -163,9 +163,8 @@ class LoggingApplicationListenerTests {
@Test
void overrideConfigDoesNotExist() {
addPropertiesToEnvironment(this.context, "logging.config=doesnotexist.xml");
assertThatIllegalStateException().isThrownBy(() -> {
this.initializer.initialize(this.context.getEnvironment(), this.context.getClassLoader());
});
assertThatIllegalStateException().isThrownBy(
() -> this.initializer.initialize(this.context.getEnvironment(), this.context.getClassLoader()));
assertThat(this.output)
.contains("Logging system failed to initialize using configuration from 'doesnotexist.xml'")
.doesNotContain("JoranException");