From: Julien HENRY Date: Fri, 3 May 2024 11:39:43 +0000 (+0200) Subject: Remove duplicated test X-Git-Tag: 6.0.0.4432~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9688ddf5c73288621cb431052196d0e7cae6080c;p=sonar-scanner-cli.git Remove duplicated test --- diff --git a/src/test/java/org/sonarsource/scanner/cli/ConfTest.java b/src/test/java/org/sonarsource/scanner/cli/ConfTest.java index 27e2eab..ea031a0 100644 --- a/src/test/java/org/sonarsource/scanner/cli/ConfTest.java +++ b/src/test/java/org/sonarsource/scanner/cli/ConfTest.java @@ -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());