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