Search in sources :

Example 6 with ConfigUserService

use of com.gitblit.ConfigUserService 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

ConfigUserService (com.gitblit.ConfigUserService)6 File (java.io.File)5 IUserService (com.gitblit.IUserService)4 UserModel (com.gitblit.models.UserModel)4 RepositoryModel (com.gitblit.models.RepositoryModel)3 Test (org.junit.Test)3 IOException (java.io.IOException)2 AccessPermission (com.gitblit.Constants.AccessPermission)1 FileSettings (com.gitblit.FileSettings)1 ForbiddenException (com.gitblit.GitBlitException.ForbiddenException)1 RefModel (com.gitblit.models.RefModel)1 TeamModel (com.gitblit.models.TeamModel)1 MailService (com.gitblit.service.MailService)1 CloneResult (com.gitblit.utils.JGitUtils.CloneResult)1 FileOutputStream (java.io.FileOutputStream)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 HashSet (java.util.HashSet)1 Map (java.util.Map)1 Properties (java.util.Properties)1