diff options
Diffstat (limited to 'src/test/java/org/sonarsource')
-rw-r--r-- | src/test/java/org/sonarsource/scanner/cli/ConfTest.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/java/org/sonarsource/scanner/cli/ConfTest.java b/src/test/java/org/sonarsource/scanner/cli/ConfTest.java index 82bd955..280c7b7 100644 --- a/src/test/java/org/sonarsource/scanner/cli/ConfTest.java +++ b/src/test/java/org/sonarsource/scanner/cli/ConfTest.java @@ -289,4 +289,13 @@ class ConfTest { assertThat(properties).containsEntry("sonar.prop", "expected"); } + @Test + void should_handle_non_latin_characters() throws Exception { + Path home = Paths.get(getClass().getResource("ConfTest/shouldHandleNonLatinChars/project").toURI()); + args.setProperty("project.home", home.toAbsolutePath().toString()); + + Properties properties = conf.properties(); + assertThat(properties).containsEntry("project.nonlatin", "Non Latin ÇŞĞIİÖÜ"); + } + } |