]> source.dussan.org Git - sonar-scanner-cli.git/commitdiff
Try (again) to fix test on Windows
authorSimonBrandhof <simon.brandhof@gmail.com>
Tue, 9 Apr 2013 13:16:52 +0000 (15:16 +0200)
committerSimonBrandhof <simon.brandhof@gmail.com>
Tue, 9 Apr 2013 13:16:52 +0000 (15:16 +0200)
sonar-runner-batch/src/test/java/org/sonar/runner/batch/FilePatternTest.java

index d6e1aa60b942d3d5e2f186cdb896580e2a5d68ba..8237ee79fd510d89aefa66f092f37c87d838fddc 100644 (file)
@@ -20,6 +20,7 @@
 package org.sonar.runner.batch;
 
 import org.apache.commons.io.FilenameUtils;
+import org.apache.commons.lang.StringUtils;
 import org.junit.Before;
 import org.junit.Test;
 
@@ -75,6 +76,7 @@ public class FilePatternTest {
   }
 
   private String path(File f) throws IOException {
-    return FilenameUtils.separatorsToUnix(f.getCanonicalPath());
+    String s = FilenameUtils.separatorsToUnix(f.getCanonicalPath());
+    return StringUtils.removeEnd(s, "/");
   }
 }