use of ca.corefacility.bioinformatics.irida.service.ProjectService in project irida by phac-nml.
the class ProjectsControllerTest method setUp.
@Before
public void setUp() {
projectService = mock(ProjectService.class);
sampleService = mock(SampleService.class);
userService = mock(UserService.class);
projectRemoteService = mock(ProjectRemoteService.class);
cartController = mock(CartController.class);
taxonomyService = mock(TaxonomyService.class);
projectUtils = mock(ProjectControllerUtils.class);
updateSamplePermission = mock(UpdateSamplePermission.class);
messageSource = mock(MessageSource.class);
controller = new ProjectsController(projectService, sampleService, userService, projectRemoteService, projectUtils, taxonomyService, remoteApiService, workflowsService, cartController, updateSamplePermission, messageSource);
user.setId(1L);
mockSidebarInfo();
}
use of ca.corefacility.bioinformatics.irida.service.ProjectService in project irida by phac-nml.
the class SamplesControllerTest method setUp.
@Before
public void setUp() {
sampleService = mock(SampleService.class);
sequencingObjectService = mock(SequencingObjectService.class);
projectService = mock(ProjectService.class);
metadataTemplateService = mock(MetadataTemplateService.class);
messageSource = mock(MessageSource.class);
updateSamplePermission = mock(UpdateSamplePermission.class);
readSamplePermission = mock(ReadSamplePermission.class);
controller = new SamplesController(sampleService, projectService, sequencingObjectService, updateSamplePermission, metadataTemplateService, messageSource);
}
use of ca.corefacility.bioinformatics.irida.service.ProjectService 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));
}
use of ca.corefacility.bioinformatics.irida.service.ProjectService 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);
}
use of ca.corefacility.bioinformatics.irida.service.ProjectService in project irida by phac-nml.
the class CartControllerTest method setup.
@Before
public void setup() {
sampleService = mock(SampleService.class);
projectService = mock(ProjectService.class);
userService = mock(UserService.class);
sequencingObjectService = mock(SequencingObjectService.class);
messageSource = mock(MessageSource.class);
controller = new CartController(sampleService, userService, projectService, sequencingObjectService, messageSource);
testData();
}
Aggregations