Merge branch '2.2.x' into 2.3.x

pull/23585/head
Phillip Webb 4 years ago
commit 98f432681f

@ -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");

Loading…
Cancel
Save