summaryrefslogtreecommitdiffstats
path: root/src/test/java/de/akquinet/devops/GitBlitServer4UITests.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/de/akquinet/devops/GitBlitServer4UITests.java')
-rw-r--r--src/test/java/de/akquinet/devops/GitBlitServer4UITests.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/test/java/de/akquinet/devops/GitBlitServer4UITests.java b/src/test/java/de/akquinet/devops/GitBlitServer4UITests.java
index 2d54be2a..6ee98a03 100644
--- a/src/test/java/de/akquinet/devops/GitBlitServer4UITests.java
+++ b/src/test/java/de/akquinet/devops/GitBlitServer4UITests.java
@@ -1,5 +1,6 @@
package de.akquinet.devops;
+import java.io.File;
import java.util.ArrayList;
import java.util.List;
@@ -7,6 +8,8 @@ import com.beust.jcommander.JCommander;
import com.beust.jcommander.ParameterException;
import com.gitblit.GitBlit;
import com.gitblit.GitBlitServer;
+import com.gitblit.IStoredSettings;
+import com.gitblit.Keys;
public class GitBlitServer4UITests extends GitBlitServer {
@@ -50,13 +53,9 @@ public class GitBlitServer4UITests extends GitBlitServer {
}
}
- private GitBlit4UITests instance;
-
@Override
- protected GitBlit getGitBlitInstance() {
- if (instance == null) {
- instance = new GitBlit4UITests(false);
- }
- return instance;
+ protected GitBlit newGitblit(IStoredSettings settings, File baseFolder) {
+ settings.overrideSetting(Keys.web.allowLuceneIndexing, false);
+ return new GitBlit(settings, baseFolder);
}
}