Skip to content

Commit 1a543ae

Browse files
author
joel.tazzari
committed
pre-commit fix
1 parent cc18f82 commit 1a543ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/user-authenticators/oauth2/src/test/java/org/apache/cloudstack/oauth2/keycloak/KeycloakOAuth2ProviderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public void testVerifyCodeAndFetchEmailHttpError() throws IOException {
106106
@Test(expected = CloudRuntimeException.class)
107107
public void testVerifyCodeAndFetchEmailNetworkFailure() throws IOException {
108108
when(oauthProviderDao.findByProvider("keycloak")).thenReturn(mockProviderVO);
109-
when(httpClient.execute(any(HttpPost.class))).thenThrow(new IOException("Connexion refusée"));
109+
when(httpClient.execute(any(HttpPost.class))).thenThrow(new IOException("Connection refused"));
110110

111111
provider.verifyCodeAndFetchEmail("code");
112112
}
@@ -222,4 +222,4 @@ public void testVerifyUserEmail() throws IOException {
222222
public void testGetDescription() {
223223
assertEquals("Keycloak OAuth2 Provider Plugin", provider.getDescription());
224224
}
225-
}
225+
}

0 commit comments

Comments
 (0)