mirror of https://github.com/apache/cloudstack.git
pre-commit fix
This commit is contained in:
parent
cc18f82d09
commit
1a543aea4d
|
|
@ -106,7 +106,7 @@ public class KeycloakOAuth2ProviderTest {
|
|||
@Test(expected = CloudRuntimeException.class)
|
||||
public void testVerifyCodeAndFetchEmailNetworkFailure() throws IOException {
|
||||
when(oauthProviderDao.findByProvider("keycloak")).thenReturn(mockProviderVO);
|
||||
when(httpClient.execute(any(HttpPost.class))).thenThrow(new IOException("Connexion refusée"));
|
||||
when(httpClient.execute(any(HttpPost.class))).thenThrow(new IOException("Connection refused"));
|
||||
|
||||
provider.verifyCodeAndFetchEmail("code");
|
||||
}
|
||||
|
|
@ -222,4 +222,4 @@ public class KeycloakOAuth2ProviderTest {
|
|||
public void testGetDescription() {
|
||||
assertEquals("Keycloak OAuth2 Provider Plugin", provider.getDescription());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue