use of ca.corefacility.bioinformatics.irida.web.controller.api.RESTUsersController in project irida by phac-nml.
the class UserControllerTest method setUp.
@Before
public void setUp() {
userService = mock(UserService.class);
projectService = mock(ProjectService.class);
controller = new RESTUsersController(userService, projectService);
// fake out the servlet response so that the URI builder will work.
RequestAttributes ra = new ServletRequestAttributes(new MockHttpServletRequest());
RequestContextHolder.setRequestAttributes(ra);
}
Aggregations