Search in sources :

Example 11 with MemorySettings

use of com.gitblit.tests.mock.MemorySettings in project gitblit by gitblit.

the class MarkdownUtilsTest method getSettings.

private MemorySettings getSettings() {
    Map<String, Object> backingMap = new HashMap<String, Object>();
    backingMap.put(Keys.web.canonicalUrl, "http://localhost");
    backingMap.put(Keys.web.shortCommitIdLength, "7");
    MemorySettings ms = new MemorySettings(backingMap);
    return ms;
}
Also used : HashMap(java.util.HashMap) MemorySettings(com.gitblit.tests.mock.MemorySettings)

Aggregations

MemorySettings (com.gitblit.tests.mock.MemorySettings)11 HashMap (java.util.HashMap)5 Test (org.junit.Test)5 IStoredSettings (com.gitblit.IStoredSettings)4 UserModel (com.gitblit.models.UserModel)3 AvatarGenerator (com.gitblit.AvatarGenerator)2 GravatarGenerator (com.gitblit.GravatarGenerator)2 Injector (com.google.inject.Injector)2 File (java.io.File)2 AuthenticationManager (com.gitblit.manager.AuthenticationManager)1 IRuntimeManager (com.gitblit.manager.IRuntimeManager)1 IUserManager (com.gitblit.manager.IUserManager)1 RepositoryManager (com.gitblit.manager.RepositoryManager)1 RuntimeManager (com.gitblit.manager.RuntimeManager)1 UserManager (com.gitblit.manager.UserManager)1 LuceneService (com.gitblit.service.LuceneService)1 SshDaemonClient (com.gitblit.transport.ssh.SshDaemonClient)1 SshKrbAuthenticator (com.gitblit.transport.ssh.SshKrbAuthenticator)1 XssFilter (com.gitblit.utils.XssFilter)1 AllowXssFilter (com.gitblit.utils.XssFilter.AllowXssFilter)1