use of ca.corefacility.bioinformatics.irida.ria.web.UsersController in project irida by phac-nml.
the class UsersControllerTest method setUp.
@Before
public void setUp() {
userService = mock(UserService.class);
projectService = mock(ProjectService.class);
messageSource = mock(MessageSource.class);
emailController = mock(EmailController.class);
passwordResetService = mock(PasswordResetService.class);
controller = new UsersController(userService, projectService, passwordResetService, emailController, messageSource);
User u1 = new User(1L, "tom", "tom@nowhere.com", "123456798", "Tom", "Matthews", "1234");
u1.setModifiedDate(new Date());
User u2 = new User(2L, "jeff", "jeff@somewhere.com", "ABCDEFGHIJ", "Jeff", "Guy", "5678");
u2.setModifiedDate(new Date());
userPage = new PageImpl<>(Lists.newArrayList(u1, u2));
}
Aggregations