aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2015-05-12 10:33:55 +0200
committerDavid Gageot <david@gageot.net>2015-05-12 14:33:40 +0200
commit4bab89867b0484fa9d21d0d54e6d7687d2b2f5bf (patch)
treebe870ca7356457d9d346a322a0a9da658913a1b7 /server
parent67901882f410a9947e488d383a45a1d8370dc796 (diff)
downloadsonarqube-4bab89867b0484fa9d21d0d54e6d7687d2b2f5bf.tar.gz
sonarqube-4bab89867b0484fa9d21d0d54e6d7687d2b2f5bf.zip
Dead code
Diffstat (limited to 'server')
-rw-r--r--server/sonar-server/src/test/java/org/sonar/server/tester/ServerTester.java25
1 files changed, 0 insertions, 25 deletions
diff --git a/server/sonar-server/src/test/java/org/sonar/server/tester/ServerTester.java b/server/sonar-server/src/test/java/org/sonar/server/tester/ServerTester.java
index 0015c8fb34e..b7c43a31c05 100644
--- a/server/sonar-server/src/test/java/org/sonar/server/tester/ServerTester.java
+++ b/server/sonar-server/src/test/java/org/sonar/server/tester/ServerTester.java
@@ -19,7 +19,6 @@
*/
package org.sonar.server.tester;
-import com.google.common.base.Preconditions;
import com.google.common.base.Throwables;
import com.google.common.collect.Lists;
import org.apache.commons.io.FileUtils;
@@ -159,18 +158,6 @@ public class ServerTester extends ExternalResource {
return this;
}
- public ServerTester addPluginJar(File jar) {
- Preconditions.checkArgument(jar.exists() && jar.isFile(), "Plugin JAR file does not exist: " + jar.getAbsolutePath());
- try {
- File pluginsDir = new File(homeDir, "extensions/plugins");
- FileUtils.forceMkdir(pluginsDir);
- FileUtils.copyFileToDirectory(jar, pluginsDir);
- return this;
- } catch (Exception e) {
- throw new IllegalStateException("Fail to copy plugin JAR file: " + jar.getAbsolutePath(), e);
- }
- }
-
/**
* Set a property available for startup. Must be called before {@link #start()}. Does not affect
* Elasticsearch server.
@@ -222,18 +209,6 @@ public class ServerTester extends ExternalResource {
}
}
- private void checkInSafeMode() {
- if (platform == null || !platform.isInSafeMode()) {
- throw new IllegalStateException("Not in safe mode");
- }
- }
-
- private void checkNotInSafeMode() {
- if (platform != null && platform.isInSafeMode()) {
- throw new IllegalStateException("Already in safe mode");
- }
- }
-
public static class Xoo implements Language {
public static final String KEY = "xoo";