diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2013-04-15 10:55:14 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2013-04-15 10:55:14 +0200 |
commit | 0d23f4f179fc5dd6bebd6729369bbba6ac9292b3 (patch) | |
tree | afbeb00a9a3cb630f09ee6b5b6e329cb77556964 | |
parent | d32a2279d5554396df00f49e9189e0710d2fc47e (diff) | |
download | sonarqube-0d23f4f179fc5dd6bebd6729369bbba6ac9292b3.tar.gz sonarqube-0d23f4f179fc5dd6bebd6729369bbba6ac9292b3.zip |
New try to fix execution of PluginDownloaderTest on Windows
-rw-r--r-- | sonar-server/src/test/java/org/sonar/server/plugins/PluginDownloaderTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-server/src/test/java/org/sonar/server/plugins/PluginDownloaderTest.java b/sonar-server/src/test/java/org/sonar/server/plugins/PluginDownloaderTest.java index f4a74624911..d3bbfdb535f 100644 --- a/sonar-server/src/test/java/org/sonar/server/plugins/PluginDownloaderTest.java +++ b/sonar-server/src/test/java/org/sonar/server/plugins/PluginDownloaderTest.java @@ -19,6 +19,7 @@ */ package org.sonar.server.plugins; +import org.apache.commons.io.FilenameUtils; import org.junit.Before; import org.junit.Rule; import org.junit.Test; @@ -102,7 +103,7 @@ public class PluginDownloaderTest { Plugin test = new Plugin("test"); File file = testFolder.newFile("test-1.0.jar"); file.createNewFile(); - Release test10 = new Release(test, "1.0").setDownloadUrl("file://" + file.getCanonicalPath()); + Release test10 = new Release(test, "1.0").setDownloadUrl("file://" + FilenameUtils.separatorsToUnix(file.getCanonicalPath())); test.addRelease(test10); when(updateCenter.findInstallablePlugins("foo", Version.create("1.0"))).thenReturn(newArrayList(test10)); |