aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src/test
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2017-09-07 16:29:42 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2017-09-15 08:51:08 +0200
commit2ec01b5375b038baae335785a2622c439de2d399 (patch)
tree2961841c3edf5988a7416cec923ba82879ca8aee /sonar-scanner-engine/src/test
parentdc5f68488fc62ac6dbaa3f0135ecdb5fa333105e (diff)
downloadsonarqube-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.java6
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");