From 8df600848e9f5254a9a7bea60b8d66248d887b24 Mon Sep 17 00:00:00 2001 From: SimonBrandhof Date: Tue, 9 Apr 2013 15:16:52 +0200 Subject: [PATCH] Try (again) to fix test on Windows --- .../src/test/java/org/sonar/runner/batch/FilePatternTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, "/"); } } -- 2.39.5