use of ca.corefacility.bioinformatics.irida.service.user.UserService in project irida by phac-nml.
the class ProjectUsersControllerTest method setUp.
@Before
public void setUp() {
projectService = mock(ProjectService.class);
userService = mock(UserService.class);
controller = new RESTProjectUsersController(userService, projectService);
}
use of ca.corefacility.bioinformatics.irida.service.user.UserService in project irida by phac-nml.
the class PipelineControllerTest method setUp.
@Before
public void setUp() {
referenceFileService = mock(ReferenceFileService.class);
analysisSubmissionService = mock(AnalysisSubmissionService.class);
workflowsService = mock(IridaWorkflowsService.class);
projectService = mock(ProjectService.class);
userService = mock(UserService.class);
messageSource = mock(MessageSource.class);
cartController = mock(CartController.class);
sequencingObjectService = mock(SequencingObjectService.class);
namedParameterService = mock(WorkflowNamedParametersService.class);
updateSamplePermission = mock(UpdateSamplePermission.class);
analysisSubmissionSampleProcessor = mock(AnalysisSubmissionSampleProcessor.class);
galaxyToolDataService = mock(GalaxyToolDataService.class);
controller = new PipelineController(sequencingObjectService, referenceFileService, analysisSubmissionService, workflowsService, projectService, userService, cartController, messageSource, namedParameterService, updateSamplePermission, analysisSubmissionSampleProcessor, galaxyToolDataService);
when(messageSource.getMessage(any(), any(), any())).thenReturn("");
}
use of ca.corefacility.bioinformatics.irida.service.user.UserService in project irida by phac-nml.
the class ProjectEventsControllerTest method setup.
@Before
public void setup() {
eventService = mock(ProjectEventService.class);
projectService = mock(ProjectService.class);
userService = mock(UserService.class);
controller = new ProjectEventsController(eventService, projectService, userService, messageSource);
}
use of ca.corefacility.bioinformatics.irida.service.user.UserService in project irida by phac-nml.
the class ProjectMembersControllerTest method setUp.
@Before
public void setUp() {
projectService = mock(ProjectService.class);
userService = mock(UserService.class);
projectUtils = mock(ProjectControllerUtils.class);
messageSource = mock(MessageSource.class);
userGroupService = mock(UserGroupService.class);
controller = new ProjectMembersController(projectUtils, projectService, userService, userGroupService, messageSource);
projectTestUtils = new ProjectTestUtils(projectService, userService);
projectTestUtils.mockSidebarInfo();
}
use of ca.corefacility.bioinformatics.irida.service.user.UserService 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();
}
Aggregations