Search in sources :

Example 1 with RemoteAPIService

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

OltuAuthorizationController (ca.corefacility.bioinformatics.irida.ria.web.oauth.OltuAuthorizationController)1 RemoteAPIController (ca.corefacility.bioinformatics.irida.ria.web.oauth.RemoteAPIController)1 RemoteAPIService (ca.corefacility.bioinformatics.irida.service.RemoteAPIService)1 RemoteAPITokenService (ca.corefacility.bioinformatics.irida.service.RemoteAPITokenService)1 ProjectRemoteService (ca.corefacility.bioinformatics.irida.service.remote.ProjectRemoteService)1 Before (org.junit.Before)1 MessageSource (org.springframework.context.MessageSource)1