From 9688ddf5c73288621cb431052196d0e7cae6080c Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Fri, 3 May 2024 13:39:43 +0200 Subject: [PATCH] Remove duplicated test --- .../java/org/sonarsource/scanner/cli/ConfTest.java | 13 ------------- 1 file changed, 13 deletions(-) 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()); -- 2.39.5