Search in sources :

Example 1 with OltuAuthorizationController

use of ca.corefacility.bioinformatics.irida.ria.web.oauth.OltuAuthorizationController in project irida by phac-nml.

the class OltuAuthorizationControllerTest method setUp.

@Before
public void setUp() {
    apiService = mock(RemoteAPIService.class);
    tokenService = mock(RemoteAPITokenService.class);
    oauthClient = mock(OAuthClient.class);
    controller = new OltuAuthorizationController(tokenService, apiService);
    controller.setServerBase(serverBase);
}
Also used : OltuAuthorizationController(ca.corefacility.bioinformatics.irida.ria.web.oauth.OltuAuthorizationController) OAuthClient(org.apache.oltu.oauth2.client.OAuthClient) RemoteAPIService(ca.corefacility.bioinformatics.irida.service.RemoteAPIService) RemoteAPITokenService(ca.corefacility.bioinformatics.irida.service.RemoteAPITokenService) Before(org.junit.Before)

Aggregations

OltuAuthorizationController (ca.corefacility.bioinformatics.irida.ria.web.oauth.OltuAuthorizationController)1 RemoteAPIService (ca.corefacility.bioinformatics.irida.service.RemoteAPIService)1 RemoteAPITokenService (ca.corefacility.bioinformatics.irida.service.RemoteAPITokenService)1 OAuthClient (org.apache.oltu.oauth2.client.OAuthClient)1 Before (org.junit.Before)1