mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Polish "Detect logback config location as xml if path ends with .xml"
See gh-37039
This commit is contained in:
parent
c9cc1da48e
commit
eed6e199fc
@ -691,7 +691,7 @@ class LogbackLoggingSystemTests extends AbstractLoggingSystemTests {
|
||||
void whenConfigLocationIsNotXmlThenIllegalArgumentExceptionShouldBeThrown() {
|
||||
this.loggingSystem.beforeInitialize();
|
||||
assertThatIllegalStateException()
|
||||
.isThrownBy(() -> initialize(this.initializationContext, "file:///logback-nonexistent.txt",
|
||||
.isThrownBy(() -> initialize(this.initializationContext, "classpath:logback-invalid-format.txt",
|
||||
getLogFile(tmpDir() + "/tmp.log", null)))
|
||||
.satisfies((ex) -> assertThat(ex.getCause()).isInstanceOf(IllegalArgumentException.class)
|
||||
.hasMessageStartingWith("Unsupported file extension"));
|
||||
|
Loading…
Reference in New Issue
Block a user