Search in sources :

Example 1 with UserServiceImpl

use of ca.corefacility.bioinformatics.irida.service.impl.user.UserServiceImpl 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

ProjectUserJoinRepository (ca.corefacility.bioinformatics.irida.repositories.joins.project.ProjectUserJoinRepository)1 UserRepository (ca.corefacility.bioinformatics.irida.repositories.user.UserRepository)1 UserServiceImpl (ca.corefacility.bioinformatics.irida.service.impl.user.UserServiceImpl)1 Validator (javax.validation.Validator)1 Before (org.junit.Before)1 PasswordEncoder (org.springframework.security.crypto.password.PasswordEncoder)1