Search in sources :

Example 1 with ProjectRemoteService

use of ca.corefacility.bioinformatics.irida.service.remote.ProjectRemoteService 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)

Example 2 with ProjectRemoteService

use of ca.corefacility.bioinformatics.irida.service.remote.ProjectRemoteService in project irida by phac-nml.

the class RemoteAPIControllerTest method setUp.

@Before
public void setUp() {
    remoteAPIService = mock(RemoteAPIService.class);
    messageSource = mock(MessageSource.class);
    projectRemoteService = mock(ProjectRemoteService.class);
    authController = mock(OltuAuthorizationController.class);
    tokenService = mock(RemoteAPITokenService.class);
    remoteAPIController = new RemoteAPIController(remoteAPIService, projectRemoteService, tokenService, authController, messageSource);
    locale = LocaleContextHolder.getLocale();
}
Also used : RemoteAPIController(ca.corefacility.bioinformatics.irida.ria.web.oauth.RemoteAPIController) OltuAuthorizationController(ca.corefacility.bioinformatics.irida.ria.web.oauth.OltuAuthorizationController) MessageSource(org.springframework.context.MessageSource) RemoteAPIService(ca.corefacility.bioinformatics.irida.service.RemoteAPIService) ProjectRemoteService(ca.corefacility.bioinformatics.irida.service.remote.ProjectRemoteService) RemoteAPITokenService(ca.corefacility.bioinformatics.irida.service.RemoteAPITokenService) Before(org.junit.Before)

Aggregations

ProjectRemoteService (ca.corefacility.bioinformatics.irida.service.remote.ProjectRemoteService)2 Before (org.junit.Before)2 MessageSource (org.springframework.context.MessageSource)2 CartController (ca.corefacility.bioinformatics.irida.ria.web.analysis.CartController)1 OltuAuthorizationController (ca.corefacility.bioinformatics.irida.ria.web.oauth.OltuAuthorizationController)1 RemoteAPIController (ca.corefacility.bioinformatics.irida.ria.web.oauth.RemoteAPIController)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 RemoteAPIService (ca.corefacility.bioinformatics.irida.service.RemoteAPIService)1 RemoteAPITokenService (ca.corefacility.bioinformatics.irida.service.RemoteAPITokenService)1 TaxonomyService (ca.corefacility.bioinformatics.irida.service.TaxonomyService)1 SampleService (ca.corefacility.bioinformatics.irida.service.sample.SampleService)1 UserService (ca.corefacility.bioinformatics.irida.service.user.UserService)1