Search in sources :

Example 1 with PasswordResetController

use of ca.corefacility.bioinformatics.irida.ria.web.PasswordResetController in project irida by phac-nml.

the class PasswordResetControllerTest method setUp.

@Before
public void setUp() {
    userService = mock(UserService.class);
    passwordResetService = mock(PasswordResetService.class);
    emailController = mock(EmailController.class);
    messageSource = mock(MessageSource.class);
    controller = new PasswordResetController(userService, passwordResetService, emailController, messageSource);
}
Also used : PasswordResetService(ca.corefacility.bioinformatics.irida.service.user.PasswordResetService) UserService(ca.corefacility.bioinformatics.irida.service.user.UserService) PasswordResetController(ca.corefacility.bioinformatics.irida.ria.web.PasswordResetController) EmailController(ca.corefacility.bioinformatics.irida.service.EmailController) MessageSource(org.springframework.context.MessageSource) Before(org.junit.Before)

Aggregations

PasswordResetController (ca.corefacility.bioinformatics.irida.ria.web.PasswordResetController)1 EmailController (ca.corefacility.bioinformatics.irida.service.EmailController)1 PasswordResetService (ca.corefacility.bioinformatics.irida.service.user.PasswordResetService)1 UserService (ca.corefacility.bioinformatics.irida.service.user.UserService)1 Before (org.junit.Before)1 MessageSource (org.springframework.context.MessageSource)1