use of ca.corefacility.bioinformatics.irida.service.ProjectService in project irida by phac-nml.
the class ReferenceFileControllerTest method setUp.
@Before
public void setUp() {
projectService = mock(ProjectService.class);
referenceFileService = mock(ReferenceFileService.class);
messageSource = mock(MessageSource.class);
// Set up the reference file
Path path = Paths.get(FILE_PATH);
ReferenceFile file = new ReferenceFile(path);
when(referenceFileService.read(FILE_ID)).thenReturn(file);
controller = new ReferenceFileController(projectService, referenceFileService, messageSource);
}
use of ca.corefacility.bioinformatics.irida.service.ProjectService 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);
}
use of ca.corefacility.bioinformatics.irida.service.ProjectService in project irida by phac-nml.
the class RESTProjectSamplesControllerTest method setUp.
@Before
public void setUp() {
projectService = mock(ProjectService.class);
sampleService = mock(SampleService.class);
controller = new RESTProjectSamplesController(projectService, sampleService);
}
Aggregations