]> source.dussan.org Git - sonar-scanner-cli.git/commitdiff
Remove duplicated test
authorJulien HENRY <julien.henry@sonarsource.com>
Fri, 3 May 2024 11:39:43 +0000 (13:39 +0200)
committerJulien HENRY <julien.henry@sonarsource.com>
Fri, 3 May 2024 12:48:44 +0000 (14:48 +0200)
src/test/java/org/sonarsource/scanner/cli/ConfTest.java

index 27e2eab5fe77bd70aeb1cbbf50e1bbd4a2322f78..ea031a05ee74edfc747278fe4e42aa04b3f6fa10 100644 (file)
@@ -190,19 +190,6 @@ class ConfTest {
     assertThat(properties.getProperty("sonar.projectBaseDir")).isEqualTo(projectHome.toString());
   }
 
-  @Test
-  void shouldNotUseCurrentDir() throws Exception {
-    Path projectHome = Paths.get(getClass().getResource("ConfTest/shouldLoadModuleConfigurationOverrideBasedir/project").toURI());
-    args.setProperty("project.home", projectHome.toAbsolutePath().toString());
-
-    Properties properties = conf.properties();
-
-    assertThat(properties.getProperty("module1.sonar.projectName")).isEqualTo("Module 1");
-    assertThat(properties.getProperty("module2.sonar.projectName")).isEqualTo("Module 2");
-    assertThat(properties.getProperty("module3.sonar.projectName")).isEqualTo("Module 3");
-    assertThat(properties.getProperty("sonar.projectBaseDir")).isEqualTo(projectHome.toString());
-  }
-
   @Test
   void shouldLoadModuleConfigurationWithoutRootConf() throws Exception {
     Path projectHome = Paths.get(getClass().getResource("ConfTest/shouldLoadModuleConfigurationWithoutRootConf/project").toURI());