summaryrefslogtreecommitdiffstats
path: root/sonar-batch/src/test
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2016-03-11 14:16:32 +0100
committerDuarte Meneses <duarte.meneses@sonarsource.com>2016-03-15 11:51:50 +0100
commitbc1b7ed1c7a6db15710af9d68096d7e5d054c9f8 (patch)
treeacc902c80fbbed6f826bfa8b29d621221086ea82 /sonar-batch/src/test
parentf34cff29d700d04018b1fa89c4bf44e4c04c4342 (diff)
downloadsonarqube-bc1b7ed1c7a6db15710af9d68096d7e5d054c9f8.tar.gz
sonarqube-bc1b7ed1c7a6db15710af9d68096d7e5d054c9f8.zip
SONAR-7153 Allow to override sonar.language with blank value
Diffstat (limited to 'sonar-batch/src/test')
-rw-r--r--sonar-batch/src/test/java/org/sonar/batch/scan/LanguageVerifierTest.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/sonar-batch/src/test/java/org/sonar/batch/scan/LanguageVerifierTest.java b/sonar-batch/src/test/java/org/sonar/batch/scan/LanguageVerifierTest.java
index a45dad4445d..22a4f21091f 100644
--- a/sonar-batch/src/test/java/org/sonar/batch/scan/LanguageVerifierTest.java
+++ b/sonar-batch/src/test/java/org/sonar/batch/scan/LanguageVerifierTest.java
@@ -61,6 +61,18 @@ public class LanguageVerifierTest {
verifier.stop();
}
+
+ @Test
+ public void language_is_empty() {
+ settings.setProperty("sonar.language", "");
+ LanguageVerifier verifier = new LanguageVerifier(settings, languages, fs);
+ verifier.start();
+
+ // no failure and no language is forced
+ assertThat(fs.languages()).isEmpty();
+
+ verifier.stop();
+ }
@Test
public void language_is_valid() {