Skip to content

Commit

Permalink
Ensure logback is reset after test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
philwebb committed Feb 4, 2016
1 parent 19afae7 commit 43a5b77
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -69,7 +70,8 @@ public void setup() {

@After
public void reset() {
this.context.reset();
this.context.stop();
BasicConfigurator.configureDefaultContext();
}

@Test
Expand Down

0 comments on commit 43a5b77

Please sign in to comment.