pre-commit fix

This commit is contained in:
joel.tazzari 2026-04-17 09:32:54 +02:00
parent cc18f82d09
commit 1a543aea4d
1 changed files with 2 additions and 2 deletions

View File

@ -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());
}
}
}