diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-04-16 19:05:09 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-04-16 19:05:09 +0200 |
commit | 8ea5c540ef2c1c9e22e06b717758a0d2dcb647a5 (patch) | |
tree | 12623b8fcbf7404931ecb8cabc42806e9f328384 /sonar-server/src/test/java/org/sonar/server/plugins | |
parent | b86b183dfd764d432e353ce19a243ca321dd4f63 (diff) | |
download | sonarqube-8ea5c540ef2c1c9e22e06b717758a0d2dcb647a5.tar.gz sonarqube-8ea5c540ef2c1c9e22e06b717758a0d2dcb647a5.zip |
Replacement injection of ServletContext by Properties in Platform
Diffstat (limited to 'sonar-server/src/test/java/org/sonar/server/plugins')
-rw-r--r-- | sonar-server/src/test/java/org/sonar/server/plugins/ServerPluginJarsInstallerTest.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sonar-server/src/test/java/org/sonar/server/plugins/ServerPluginJarsInstallerTest.java b/sonar-server/src/test/java/org/sonar/server/plugins/ServerPluginJarsInstallerTest.java index caf2b8f7acc..fc0ef01ada4 100644 --- a/sonar-server/src/test/java/org/sonar/server/plugins/ServerPluginJarsInstallerTest.java +++ b/sonar-server/src/test/java/org/sonar/server/plugins/ServerPluginJarsInstallerTest.java @@ -50,7 +50,7 @@ public class ServerPluginJarsInstallerTest { public TemporaryFolder temp = new TemporaryFolder(); DefaultServerFileSystem fileSystem; - File homeDir, deployDir, pluginsDir, downloadsDir, bundledDir, trashDir, coreDir; + File homeDir, pluginsDir, downloadsDir, bundledDir, trashDir, coreDir; ServerPluginJarInstaller jarInstaller; ServerPluginJarsInstaller jarsInstaller; Server server = mock(Server.class); @@ -67,8 +67,7 @@ public class ServerPluginJarsInstallerTest { bundledDir = new File(homeDir, "lib/bundled-plugins"); coreDir = new File(homeDir, "lib/core-plugins"); FileUtils.forceMkdir(bundledDir); - deployDir = temp.newFolder("deploy"); - fileSystem = new DefaultServerFileSystem(mock(Database.class), homeDir, deployDir); + fileSystem = new DefaultServerFileSystem(mock(Database.class), homeDir, server); jarInstaller = new ServerPluginJarInstaller(); jarsInstaller = new ServerPluginJarsInstaller(server, upgradeStatus, fileSystem, jarInstaller); } |