Skip to content

Commit 3fdf281

Browse files
committed
Remove reliance on side-effects in LogbackLoggingSystemTests
Closes spring-projectsgh-16160
1 parent 2916421 commit 3fdf281

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spring-boot/src/test/java/org/springframework/boot/logging/logback/LogbackLoggingSystemTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2018 the original author or authors.
2+
* Copyright 2012-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -128,8 +128,9 @@ public void withFile() throws Exception {
128128
}
129129

130130
@Test
131-
public void testBasicConfigLocation() throws Exception {
131+
public void defaultConfigConfiguresAConsoleAppender() throws Exception {
132132
this.loggingSystem.beforeInitialize();
133+
this.loggingSystem.initialize(this.initializationContext, null, null);
133134
ILoggerFactory factory = StaticLoggerBinder.getSingleton().getLoggerFactory();
134135
LoggerContext context = (LoggerContext) factory;
135136
Logger root = context.getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME);

0 commit comments

Comments
 (0)