diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2017-09-07 16:29:42 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2017-09-15 08:51:08 +0200 |
commit | 2ec01b5375b038baae335785a2622c439de2d399 (patch) | |
tree | 2961841c3edf5988a7416cec923ba82879ca8aee /sonar-scanner-engine/src/test | |
parent | dc5f68488fc62ac6dbaa3f0135ecdb5fa333105e (diff) | |
download | sonarqube-2ec01b5375b038baae335785a2622c439de2d399.tar.gz sonarqube-2ec01b5375b038baae335785a2622c439de2d399.zip |
SONAR-9666 Restore support of multi-valued properties containing line breaks
Diffstat (limited to 'sonar-scanner-engine/src/test')
-rw-r--r-- | sonar-scanner-engine/src/test/java/org/sonar/scanner/config/DefaultConfigurationTest.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/config/DefaultConfigurationTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/config/DefaultConfigurationTest.java index adf55780f1d..f21b30a8ea5 100644 --- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/config/DefaultConfigurationTest.java +++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/config/DefaultConfigurationTest.java @@ -114,6 +114,12 @@ public class DefaultConfigurationTest { assertThat(getStringArray("a , b")).containsExactly("a", "b"); assertThat(getStringArray("\"a \",\" b\"")).containsExactly("a ", " b"); assertThat(getStringArray("\"a,b\",c")).containsExactly("a,b", "c"); + assertThat(getStringArray("\"a\nb\",c")).containsExactly("a\nb", "c"); + assertThat(getStringArray("\"a\",\n b\n")).containsExactly("a", "b"); + assertThat(getStringArray("a\n,b\n")).containsExactly("a", "b"); + assertThat(getStringArray("a\n,,b\n")).containsExactly("a", "", "b"); + assertThat(getStringArray("a,\n\nb,c")).containsExactly("a", "b", "c"); + assertThat(getStringArray("a,b\n\nc,d")).containsExactly("a", "b\nc", "d"); try { getStringArray("\"a ,b"); fail("Expected exception"); |