aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-core
diff options
context:
space:
mode:
authorJacek <jacek.poreda@sonarsource.com>2020-06-26 15:41:48 +0200
committersonartech <sonartech@sonarsource.com>2020-06-30 20:05:42 +0000
commit9112c817aaf6d3273888cc3ef82245f4fcda3b4b (patch)
treecb24e66718495ed97cdb1d7bc41d1b6d79d011e8 /server/sonar-webserver-core
parentcf787e3f6ab12481d3e75a8a8af77d1d7edc8f6f (diff)
downloadsonarqube-9112c817aaf6d3273888cc3ef82245f4fcda3b4b.tar.gz
sonarqube-9112c817aaf6d3273888cc3ef82245f4fcda3b4b.zip
SONAR-13461 fix SSF-112
Diffstat (limited to 'server/sonar-webserver-core')
-rw-r--r--server/sonar-webserver-core/src/test/java/org/sonar/server/app/WebServerProcessLoggingTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-webserver-core/src/test/java/org/sonar/server/app/WebServerProcessLoggingTest.java b/server/sonar-webserver-core/src/test/java/org/sonar/server/app/WebServerProcessLoggingTest.java
index c47feaaf1ba..62bc9287bba 100644
--- a/server/sonar-webserver-core/src/test/java/org/sonar/server/app/WebServerProcessLoggingTest.java
+++ b/server/sonar-webserver-core/src/test/java/org/sonar/server/app/WebServerProcessLoggingTest.java
@@ -22,7 +22,6 @@ package org.sonar.server.app;
import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.Logger;
import ch.qos.logback.classic.LoggerContext;
-import ch.qos.logback.classic.encoder.PatternLayoutEncoder;
import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.Appender;
import ch.qos.logback.core.AppenderBase;
@@ -48,6 +47,7 @@ import org.junit.rules.TemporaryFolder;
import org.sonar.process.Props;
import org.sonar.process.logging.LogbackHelper;
import org.sonar.process.logging.LogbackJsonLayout;
+import org.sonar.process.logging.PatternLayoutEncoder;
import static org.assertj.core.api.Assertions.assertThat;
import static org.slf4j.Logger.ROOT_LOGGER_NAME;
@@ -508,10 +508,10 @@ public class WebServerProcessLoggingTest {
LoggerContext context = underTest.configure(props);
Logger rootLogger = context.getLogger(ROOT_LOGGER_NAME);
- OutputStreamAppender appender = (OutputStreamAppender)rootLogger.getAppender("file_web");
+ OutputStreamAppender appender = (OutputStreamAppender) rootLogger.getAppender("file_web");
Encoder<ILoggingEvent> encoder = appender.getEncoder();
assertThat(encoder).isInstanceOf(LayoutWrappingEncoder.class);
- assertThat(((LayoutWrappingEncoder)encoder).getLayout()).isInstanceOf(LogbackJsonLayout.class);
+ assertThat(((LayoutWrappingEncoder) encoder).getLayout()).isInstanceOf(LogbackJsonLayout.class);
}
private void verifyRootLogLevel(LoggerContext ctx, Level expected) {