diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2019-12-09 09:34:43 -0600 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-12-10 20:46:09 +0100 |
commit | d1fd889554bccbb50122550899dbb66b90b04f78 (patch) | |
tree | 9cad838366292ee79b77ac3513403f7489b06355 /sonar-scanner-engine/src/test/java/org/sonar/batch/bootstrapper/LoggingConfigurationTest.java | |
parent | f86a1094588e4e47b3abf612891af0431653cd0e (diff) | |
download | sonarqube-d1fd889554bccbb50122550899dbb66b90b04f78.tar.gz sonarqube-d1fd889554bccbb50122550899dbb66b90b04f78.zip |
Fix code quality issues and reduce dependency on Guava
Diffstat (limited to 'sonar-scanner-engine/src/test/java/org/sonar/batch/bootstrapper/LoggingConfigurationTest.java')
-rw-r--r-- | sonar-scanner-engine/src/test/java/org/sonar/batch/bootstrapper/LoggingConfigurationTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sonar-scanner-engine/src/test/java/org/sonar/batch/bootstrapper/LoggingConfigurationTest.java b/sonar-scanner-engine/src/test/java/org/sonar/batch/bootstrapper/LoggingConfigurationTest.java index 27fa806da8b..8b0ba3c1430 100644 --- a/sonar-scanner-engine/src/test/java/org/sonar/batch/bootstrapper/LoggingConfigurationTest.java +++ b/sonar-scanner-engine/src/test/java/org/sonar/batch/bootstrapper/LoggingConfigurationTest.java @@ -19,7 +19,7 @@ */ package org.sonar.batch.bootstrapper; -import com.google.common.collect.Maps; +import java.util.HashMap; import java.util.Map; import org.junit.Test; @@ -42,7 +42,7 @@ public class LoggingConfigurationTest { @Test public void testSetVerboseAnalysis() { - Map<String, String> props = Maps.newHashMap(); + Map<String, String> props = new HashMap<>(); LoggingConfiguration conf = new LoggingConfiguration(null).setProperties(props); assertThat(conf.getSubstitutionVariable(LoggingConfiguration.PROPERTY_ROOT_LOGGER_LEVEL)).isEqualTo(LoggingConfiguration.LEVEL_ROOT_DEFAULT); @@ -65,7 +65,7 @@ public class LoggingConfigurationTest { @Test public void test_deprecated_log_properties() { - Map<String, String> properties = Maps.newHashMap(); + Map<String, String> properties = new HashMap<>(); assertThat(new LoggingConfiguration(null).setProperties(properties) .getSubstitutionVariable(LoggingConfiguration.PROPERTY_ROOT_LOGGER_LEVEL)).isEqualTo(LoggingConfiguration.LEVEL_ROOT_DEFAULT); @@ -90,7 +90,7 @@ public class LoggingConfigurationTest { @Test public void test_log_level_property() { - Map<String, String> properties = Maps.newHashMap(); + Map<String, String> properties = new HashMap<>(); LoggingConfiguration conf = new LoggingConfiguration(null).setProperties(properties); assertThat(conf.getSubstitutionVariable(LoggingConfiguration.PROPERTY_ROOT_LOGGER_LEVEL)).isEqualTo("INFO"); |