aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-10-10 09:20:45 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2013-10-10 09:20:45 +0200
commit1251c2f52cb10c1bcdf5b5b7349dea0a8a2610be (patch)
tree33afaf5b0730af6b1910403b8d544ee36e5a7554
parent699598cb972ca6f22174f7f7979a084babad2ab9 (diff)
downloadsonarqube-1251c2f52cb10c1bcdf5b5b7349dea0a8a2610be.tar.gz
sonarqube-1251c2f52cb10c1bcdf5b5b7349dea0a8a2610be.zip
SONAR-3677 fix (again) test on MSWindows
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/scan/filesystem/internal/DefaultInputFileTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/scan/filesystem/internal/DefaultInputFileTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/scan/filesystem/internal/DefaultInputFileTest.java
index a418721f796..75430ff86a3 100644
--- a/sonar-plugin-api/src/test/java/org/sonar/api/scan/filesystem/internal/DefaultInputFileTest.java
+++ b/sonar-plugin-api/src/test/java/org/sonar/api/scan/filesystem/internal/DefaultInputFileTest.java
@@ -19,6 +19,7 @@
*/
package org.sonar.api.scan.filesystem.internal;
+import org.apache.commons.io.FilenameUtils;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
@@ -70,7 +71,7 @@ public class DefaultInputFileTest {
assertThat(input.name()).isEqualTo("Foo.java");
assertThat(input.file()).isEqualTo(file);
- assertThat(input.attribute(InputFile.ATTRIBUTE_SOURCEDIR_PATH)).isEqualTo(sourceDir.getAbsolutePath());
+ assertThat(input.attribute(InputFile.ATTRIBUTE_SOURCEDIR_PATH)).isEqualTo(FilenameUtils.separatorsToUnix(sourceDir.getAbsolutePath()));
assertThat(input.relativePath()).isEqualTo("src/main/java/Foo.java");
assertThat(input.path()).isEqualTo(file.getCanonicalPath());
}