]> source.dussan.org Git - sonar-scanner-cli.git/commitdiff
Removed test since we don't log that anymore
authorJulien HENRY <julien.henry@sonarsource.com>
Mon, 6 May 2024 13:38:05 +0000 (15:38 +0200)
committerJulien HENRY <julien.henry@sonarsource.com>
Tue, 7 May 2024 11:04:55 +0000 (13:04 +0200)
it/src/test/java/com/sonarsource/scanner/it/ScannerTest.java

index 9129ce22cf864042f6eedcbe568d252e238604e0..8055d8206d007f284b60a1713467b106fd751b11 100644 (file)
@@ -135,23 +135,6 @@ public class ScannerTest extends ScannerTestCase {
       .contains("Invalid value of sonar.sources for bad-source-dirs");
   }
 
-  /**
-   * SONARPLUGINS-2256
-   */
-  @Test
-  public void should_warn_when_analysis_is_platform_dependent() {
-    SonarScanner build = newScanner(new File("projects/simple-sample"))
-      // ORCH-243
-      .setSourceEncoding("");
-    String log = orchestrator.executeBuild(build).getLogs();
-
-    // Note: we can't really check the locale value and the charset because the ones used during the Sonar analysis may not be the ones
-    // used to launch the tests. But we can check that the analysis is platform dependent (i.e. "sonar.sourceEncoding" hasn't been set).
-    assertThat(log).contains("Default locale:")
-      .contains(", source code encoding:")
-      .contains("(analysis is platform dependent)");
-  }
-
   /**
    * SONARUNNER-153
    */