aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-core
diff options
context:
space:
mode:
authorJulien Camus <julien.camus@sonarsource.com>2024-12-20 10:42:05 +0100
committersonartech <sonartech@sonarsource.com>2024-12-20 20:03:10 +0000
commitafe11634f5a0c1d89a5c0ea41cd1cebf78593b75 (patch)
treeb1ed646d3f26b435feb6936624c488bdf1b3e024 /server/sonar-db-core
parent77a3f39cc788ea88e28e72caee5d36cf72bc2c95 (diff)
downloadsonarqube-afe11634f5a0c1d89a5c0ea41cd1cebf78593b75.tar.gz
sonarqube-afe11634f5a0c1d89a5c0ea41cd1cebf78593b75.zip
SONAR-24066 Replace deprecated LoggerLevel calls to SLF4J Level
Diffstat (limited to 'server/sonar-db-core')
-rw-r--r--server/sonar-db-core/src/test/java/org/sonar/db/profiling/ProfiledDataSourceTest.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/server/sonar-db-core/src/test/java/org/sonar/db/profiling/ProfiledDataSourceTest.java b/server/sonar-db-core/src/test/java/org/sonar/db/profiling/ProfiledDataSourceTest.java
index 60b9805812b..0e4a31058d9 100644
--- a/server/sonar-db-core/src/test/java/org/sonar/db/profiling/ProfiledDataSourceTest.java
+++ b/server/sonar-db-core/src/test/java/org/sonar/db/profiling/ProfiledDataSourceTest.java
@@ -36,7 +36,6 @@ import org.junit.Rule;
import org.junit.Test;
import org.slf4j.event.Level;
import org.sonar.api.testfixtures.log.LogTester;
-import org.sonar.api.utils.log.LoggerLevel;
import static java.nio.charset.StandardCharsets.UTF_8;
import static org.assertj.core.api.Assertions.assertThat;
@@ -53,7 +52,7 @@ public class ProfiledDataSourceTest {
@Test
public void execute_and_log_statement() throws Exception {
- logTester.setLevel(LoggerLevel.TRACE);
+ logTester.setLevel(Level.TRACE);
Connection connection = mock(Connection.class);
when(originDataSource.getConnection()).thenReturn(connection);
@@ -78,7 +77,7 @@ public class ProfiledDataSourceTest {
@Test
public void execute_and_log_prepared_statement_with_parameters() throws Exception {
- logTester.setLevel(LoggerLevel.TRACE);
+ logTester.setLevel(Level.TRACE);
Connection connection = mock(Connection.class);
when(originDataSource.getConnection()).thenReturn(connection);
@@ -115,7 +114,7 @@ public class ProfiledDataSourceTest {
@Test
public void execute_and_log_prepared_statement_without_parameters() throws Exception {
- logTester.setLevel(LoggerLevel.TRACE);
+ logTester.setLevel(Level.TRACE);
Connection connection = mock(Connection.class);
when(originDataSource.getConnection()).thenReturn(connection);