Search in sources :

Example 6 with UserRepository

use of ca.corefacility.bioinformatics.irida.repositories.user.UserRepository in project irida by phac-nml.

the class UpdateUserGroupPermissionTest method setUp.

@Before
public void setUp() {
    userRepository = mock(UserRepository.class);
    userGroupRepository = mock(UserGroupRepository.class);
    userGroupJoinRepository = mock(UserGroupJoinRepository.class);
    updateUserPermission = new UpdateUserGroupPermission(userGroupRepository, userGroupJoinRepository, userRepository);
}
Also used : UserRepository(ca.corefacility.bioinformatics.irida.repositories.user.UserRepository) UserGroupRepository(ca.corefacility.bioinformatics.irida.repositories.user.UserGroupRepository) UserGroupJoinRepository(ca.corefacility.bioinformatics.irida.repositories.user.UserGroupJoinRepository) UpdateUserGroupPermission(ca.corefacility.bioinformatics.irida.security.permissions.user.UpdateUserGroupPermission) Before(org.junit.Before)

Example 7 with UserRepository

use of ca.corefacility.bioinformatics.irida.repositories.user.UserRepository in project irida by phac-nml.

the class UserServiceImplTest method setUp.

@Before
public void setUp() {
    validator = mock(Validator.class);
    userRepository = mock(UserRepository.class);
    passwordEncoder = mock(PasswordEncoder.class);
    pujRepository = mock(ProjectUserJoinRepository.class);
    userService = new UserServiceImpl(userRepository, pujRepository, passwordEncoder, validator);
}
Also used : UserRepository(ca.corefacility.bioinformatics.irida.repositories.user.UserRepository) PasswordEncoder(org.springframework.security.crypto.password.PasswordEncoder) UserServiceImpl(ca.corefacility.bioinformatics.irida.service.impl.user.UserServiceImpl) ProjectUserJoinRepository(ca.corefacility.bioinformatics.irida.repositories.joins.project.ProjectUserJoinRepository) Validator(javax.validation.Validator) Before(org.junit.Before)

Aggregations

UserRepository (ca.corefacility.bioinformatics.irida.repositories.user.UserRepository)7 Before (org.junit.Before)7 ProjectUserJoinRepository (ca.corefacility.bioinformatics.irida.repositories.joins.project.ProjectUserJoinRepository)3 ProjectRepository (ca.corefacility.bioinformatics.irida.repositories.ProjectRepository)2 ProjectSampleJoinRepository (ca.corefacility.bioinformatics.irida.repositories.joins.project.ProjectSampleJoinRepository)2 UserGroupProjectJoinRepository (ca.corefacility.bioinformatics.irida.repositories.joins.project.UserGroupProjectJoinRepository)2 SampleRepository (ca.corefacility.bioinformatics.irida.repositories.sample.SampleRepository)2 SequencingObjectRepository (ca.corefacility.bioinformatics.irida.repositories.sequencefile.SequencingObjectRepository)2 UserGroupJoinRepository (ca.corefacility.bioinformatics.irida.repositories.user.UserGroupJoinRepository)2 ReadProjectPermission (ca.corefacility.bioinformatics.irida.security.permissions.project.ReadProjectPermission)2 Validator (javax.validation.Validator)2 User (ca.corefacility.bioinformatics.irida.model.user.User)1 ProjectReferenceFileJoinRepository (ca.corefacility.bioinformatics.irida.repositories.joins.project.ProjectReferenceFileJoinRepository)1 RelatedProjectRepository (ca.corefacility.bioinformatics.irida.repositories.joins.project.RelatedProjectRepository)1 SampleSequencingObjectJoinRepository (ca.corefacility.bioinformatics.irida.repositories.joins.sample.SampleSequencingObjectJoinRepository)1 ReferenceFileRepository (ca.corefacility.bioinformatics.irida.repositories.referencefile.ReferenceFileRepository)1 UserGroupRepository (ca.corefacility.bioinformatics.irida.repositories.user.UserGroupRepository)1 ReadSequencingObjectPermission (ca.corefacility.bioinformatics.irida.security.permissions.files.ReadSequencingObjectPermission)1 ReadSamplePermission (ca.corefacility.bioinformatics.irida.security.permissions.sample.ReadSamplePermission)1 UpdateUserGroupPermission (ca.corefacility.bioinformatics.irida.security.permissions.user.UpdateUserGroupPermission)1