From: SimonBrandhof Date: Tue, 9 Apr 2013 13:16:52 +0000 (+0200) Subject: Try (again) to fix test on Windows X-Git-Tag: 2.5-rc1~154 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8df600848e9f5254a9a7bea60b8d66248d887b24;p=sonar-scanner-cli.git Try (again) to fix test on Windows --- diff --git a/sonar-runner-batch/src/test/java/org/sonar/runner/batch/FilePatternTest.java b/sonar-runner-batch/src/test/java/org/sonar/runner/batch/FilePatternTest.java index d6e1aa6..8237ee7 100644 --- a/sonar-runner-batch/src/test/java/org/sonar/runner/batch/FilePatternTest.java +++ b/sonar-runner-batch/src/test/java/org/sonar/runner/batch/FilePatternTest.java @@ -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, "/"); } }