diff options
author | James Moger <james.moger@gitblit.com> | 2013-11-20 15:26:24 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-11-29 11:05:51 -0500 |
commit | e24670533215141f7146349f782d3c4a2d3ee535 (patch) | |
tree | a1989fb93593ff2167493581fd509064eaa52c02 /src/test/java/com/gitblit/tests/mock | |
parent | 32539684194f55a76ec171852f582bdafa4c5631 (diff) | |
download | gitblit-e24670533215141f7146349f782d3c4a2d3ee535.tar.gz gitblit-e24670533215141f7146349f782d3c4a2d3ee535.zip |
Extract RuntimeManager from GitBlit singleton
Change-Id: I5358389396f816da979ec18a31421c2d2b67b3d9
Diffstat (limited to 'src/test/java/com/gitblit/tests/mock')
-rw-r--r-- | src/test/java/com/gitblit/tests/mock/MockRuntimeManager.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/test/java/com/gitblit/tests/mock/MockRuntimeManager.java b/src/test/java/com/gitblit/tests/mock/MockRuntimeManager.java index b42d29a5..aaa6c668 100644 --- a/src/test/java/com/gitblit/tests/mock/MockRuntimeManager.java +++ b/src/test/java/com/gitblit/tests/mock/MockRuntimeManager.java @@ -22,6 +22,7 @@ import java.util.TimeZone; import com.gitblit.Constants; import com.gitblit.IStoredSettings; +import com.gitblit.manager.IManager; import com.gitblit.manager.IRuntimeManager; import com.gitblit.models.ServerSettings; import com.gitblit.models.ServerStatus; @@ -48,7 +49,7 @@ public class MockRuntimeManager implements IRuntimeManager { public MockRuntimeManager(IStoredSettings settings) { this.settings = settings; - this.serverStatus = new ServerStatus(true); + this.serverStatus = new ServerStatus(); this.serverStatus.servletContainer = "MockServer"; this.serverSettings = new ServerSettings(); @@ -130,4 +131,13 @@ public class MockRuntimeManager implements IRuntimeManager { return settings.saveSettings(updatedSettings); } + @Override + public IManager stop() { + return this; + } + + @Override + public IRuntimeManager setup() { + return this; + } } |