Search in sources :

Example 6 with IUserService

use of com.gitblit.IUserService in project gitblit by gitblit.

the class UserServiceTest method testConfigUserService.

@Test
public void testConfigUserService() throws IOException {
    File file = new File("us-test.conf");
    file.delete();
    IUserService service = new ConfigUserService(file);
    testUsers(service);
    testTeams(service);
    file.delete();
}
Also used : IUserService(com.gitblit.IUserService) ConfigUserService(com.gitblit.ConfigUserService) File(java.io.File) Test(org.junit.Test)

Aggregations

IUserService (com.gitblit.IUserService)6 ConfigUserService (com.gitblit.ConfigUserService)4 File (java.io.File)4 UserModel (com.gitblit.models.UserModel)3 TeamModel (com.gitblit.models.TeamModel)2 IOException (java.io.IOException)2 HashMap (java.util.HashMap)2 AccessPermission (com.gitblit.Constants.AccessPermission)1 FileSettings (com.gitblit.FileSettings)1 ForbiddenException (com.gitblit.GitBlitException.ForbiddenException)1 AuthenticationManager (com.gitblit.manager.AuthenticationManager)1 IAuthenticationManager (com.gitblit.manager.IAuthenticationManager)1 IRuntimeManager (com.gitblit.manager.IRuntimeManager)1 RuntimeManager (com.gitblit.manager.RuntimeManager)1 UserManager (com.gitblit.manager.UserManager)1 RefModel (com.gitblit.models.RefModel)1 RepositoryModel (com.gitblit.models.RepositoryModel)1 MailService (com.gitblit.service.MailService)1 CloneResult (com.gitblit.utils.JGitUtils.CloneResult)1 XssFilter (com.gitblit.utils.XssFilter)1