Browse Source

Add test to validate `log42-spring.xml` location

See gh-4809
pull/4829/head
Stephane Nicoll 10 years ago
parent
commit
3e25d99f4e
  1. 7
      spring-boot/src/test/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystemTests.java

7
spring-boot/src/test/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystemTests.java

@ -191,6 +191,13 @@ public class Log4J2LoggingSystemTests extends AbstractLoggingSystemTests { @@ -191,6 +191,13 @@ public class Log4J2LoggingSystemTests extends AbstractLoggingSystemTests {
"log4j2.jsn", "log4j2.xml")));
}
@Test
public void springConfigLocations() throws Exception {
String[] locations = getSpringConfigLocations(this.loggingSystem);
assertThat(locations,
equalTo(new String[] { "log4j2-spring.xml" }));
}
@Test
public void exceptionsIncludeClassPackaging() throws Exception {
this.loggingSystem.beforeInitialize();

Loading…
Cancel
Save