Search in sources :

Example 1 with TaxonomyService

use of ca.corefacility.bioinformatics.irida.service.TaxonomyService 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();
}
Also used : TaxonomyService(ca.corefacility.bioinformatics.irida.service.TaxonomyService) CartController(ca.corefacility.bioinformatics.irida.ria.web.analysis.CartController) SampleService(ca.corefacility.bioinformatics.irida.service.sample.SampleService) UserService(ca.corefacility.bioinformatics.irida.service.user.UserService) ProjectControllerUtils(ca.corefacility.bioinformatics.irida.ria.web.projects.ProjectControllerUtils) ProjectService(ca.corefacility.bioinformatics.irida.service.ProjectService) MessageSource(org.springframework.context.MessageSource) ProjectsController(ca.corefacility.bioinformatics.irida.ria.web.projects.ProjectsController) ProjectRemoteService(ca.corefacility.bioinformatics.irida.service.remote.ProjectRemoteService) UpdateSamplePermission(ca.corefacility.bioinformatics.irida.security.permissions.sample.UpdateSamplePermission) Before(org.junit.Before)

Aggregations

CartController (ca.corefacility.bioinformatics.irida.ria.web.analysis.CartController)1 ProjectControllerUtils (ca.corefacility.bioinformatics.irida.ria.web.projects.ProjectControllerUtils)1 ProjectsController (ca.corefacility.bioinformatics.irida.ria.web.projects.ProjectsController)1 UpdateSamplePermission (ca.corefacility.bioinformatics.irida.security.permissions.sample.UpdateSamplePermission)1 ProjectService (ca.corefacility.bioinformatics.irida.service.ProjectService)1 TaxonomyService (ca.corefacility.bioinformatics.irida.service.TaxonomyService)1 ProjectRemoteService (ca.corefacility.bioinformatics.irida.service.remote.ProjectRemoteService)1 SampleService (ca.corefacility.bioinformatics.irida.service.sample.SampleService)1 UserService (ca.corefacility.bioinformatics.irida.service.user.UserService)1 Before (org.junit.Before)1 MessageSource (org.springframework.context.MessageSource)1