| | |
| | | |
| | | 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; |
| | |
| | | public MockRuntimeManager(IStoredSettings settings) { |
| | | this.settings = settings; |
| | | |
| | | this.serverStatus = new ServerStatus(true); |
| | | this.serverStatus = new ServerStatus(); |
| | | this.serverStatus.servletContainer = "MockServer"; |
| | | |
| | | this.serverSettings = new ServerSettings(); |
| | |
| | | return settings.saveSettings(updatedSettings); |
| | | } |
| | | |
| | | @Override |
| | | public IManager stop() { |
| | | return this; |
| | | } |
| | | |
| | | @Override |
| | | public IRuntimeManager setup() { |
| | | return this; |
| | | } |
| | | } |