Search in sources :

Example 1 with ProjectSamplesController

use of ca.corefacility.bioinformatics.irida.ria.web.projects.ProjectSamplesController in project irida by phac-nml.

the class ProjectSamplesControllerTest method setUp.

@Before
public void setUp() {
    projectService = mock(ProjectService.class);
    sampleService = mock(SampleService.class);
    sequencingObjectService = mock(SequencingObjectService.class);
    projectUtils = mock(ProjectControllerUtils.class);
    messageSource = mock(MessageSource.class);
    controller = new ProjectSamplesController(projectService, sampleService, sequencingObjectService, projectUtils, messageSource);
    user.setId(1L);
    mockSidebarInfo();
}
Also used : SequencingObjectService(ca.corefacility.bioinformatics.irida.service.SequencingObjectService) SampleService(ca.corefacility.bioinformatics.irida.service.sample.SampleService) ProjectControllerUtils(ca.corefacility.bioinformatics.irida.ria.web.projects.ProjectControllerUtils) ProjectService(ca.corefacility.bioinformatics.irida.service.ProjectService) MessageSource(org.springframework.context.MessageSource) ProjectSamplesController(ca.corefacility.bioinformatics.irida.ria.web.projects.ProjectSamplesController) Before(org.junit.Before)

Aggregations

ProjectControllerUtils (ca.corefacility.bioinformatics.irida.ria.web.projects.ProjectControllerUtils)1 ProjectSamplesController (ca.corefacility.bioinformatics.irida.ria.web.projects.ProjectSamplesController)1 ProjectService (ca.corefacility.bioinformatics.irida.service.ProjectService)1 SequencingObjectService (ca.corefacility.bioinformatics.irida.service.SequencingObjectService)1 SampleService (ca.corefacility.bioinformatics.irida.service.sample.SampleService)1 Before (org.junit.Before)1 MessageSource (org.springframework.context.MessageSource)1