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