Ensure logback is reset after test
Update SpringBootJoranConfiguratorTests to ensure that logback is left in a sane state. Prior to this commit, running all tests in eclipse would fail due to ErrorPageFilterTests expecting specific log output.
This commit is contained in:
parent
19afae7fe6
commit
43a5b77256
|
|
@ -16,6 +16,7 @@
|
|||
|
||||
package org.springframework.boot.logging.logback;
|
||||
|
||||
import ch.qos.logback.classic.BasicConfigurator;
|
||||
import ch.qos.logback.classic.LoggerContext;
|
||||
import ch.qos.logback.classic.joran.JoranConfigurator;
|
||||
import ch.qos.logback.core.joran.spi.JoranException;
|
||||
|
|
@ -69,7 +70,8 @@ public class SpringBootJoranConfiguratorTests {
|
|||
|
||||
@After
|
||||
public void reset() {
|
||||
this.context.reset();
|
||||
this.context.stop();
|
||||
BasicConfigurator.configureDefaultContext();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
|||
Loading…
Reference in New Issue