aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch/src/test/java/org/sonar
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-02-18 14:22:09 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2013-02-18 14:22:09 +0100
commit7975f4777901956c93ca2f08606415840a682816 (patch)
treeaf1c621fe3e9ad66d6189c5266fa5f0cf9c3bf23 /sonar-batch/src/test/java/org/sonar
parent5a1634e38b510c684868cfe96185929622010ece (diff)
downloadsonarqube-7975f4777901956c93ca2f08606415840a682816.tar.gz
sonarqube-7975f4777901956c93ca2f08606415840a682816.zip
Fix inclusions by absolute path and improve documentation
Diffstat (limited to 'sonar-batch/src/test/java/org/sonar')
-rw-r--r--sonar-batch/src/test/java/org/sonar/batch/scan/filesystem/DefaultModuleFileSystemTest.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/sonar-batch/src/test/java/org/sonar/batch/scan/filesystem/DefaultModuleFileSystemTest.java b/sonar-batch/src/test/java/org/sonar/batch/scan/filesystem/DefaultModuleFileSystemTest.java
index afc4009f67b..74aa5bd264a 100644
--- a/sonar-batch/src/test/java/org/sonar/batch/scan/filesystem/DefaultModuleFileSystemTest.java
+++ b/sonar-batch/src/test/java/org/sonar/batch/scan/filesystem/DefaultModuleFileSystemTest.java
@@ -78,19 +78,21 @@ public class DefaultModuleFileSystemTest {
.setSettings(new Settings());
assertThat(fileSystem.sourceCharset()).isEqualTo(Charset.defaultCharset());
+ assertThat(fileSystem.isDefaultSourceCharset()).isTrue();
}
@Test
- public void source_encoding_is_set() {
- File basedir = temp.newFolder("base");
+ public void source_encoding_is_set() {
+ File basedir = temp.newFolder("base");
Settings settings = new Settings();
settings.setProperty(CoreProperties.ENCODING_PROPERTY, "UTF-8");
DefaultModuleFileSystem fileSystem = new DefaultModuleFileSystem()
- .setBaseDir(basedir)
- .setSettings(settings);
+ .setBaseDir(basedir)
+ .setSettings(settings);
- assertThat(fileSystem.sourceCharset()).isEqualTo(Charset.forName("UTF-8"));
- }
+ assertThat(fileSystem.sourceCharset()).isEqualTo(Charset.forName("UTF-8"));
+ assertThat(fileSystem.isDefaultSourceCharset()).isFalse();
+ }
@Test
public void should_exclude_dirs_starting_with_dot() throws IOException {