diff --git a/src/test/java/it/web/AccessToken.java b/src/test/java/it/web/KeycloakToken.java similarity index 97% rename from src/test/java/it/web/AccessToken.java rename to src/test/java/it/web/KeycloakToken.java index 9088124..e812534 100644 --- a/src/test/java/it/web/AccessToken.java +++ b/src/test/java/it/web/KeycloakToken.java @@ -39,7 +39,7 @@ "JTCOP.RuleCorrectTestName", "JTCOP.RuleAllTestsHaveProductionClass" }) -public final class AccessToken implements Scalar { +public final class KeycloakToken implements Scalar { /** * Auth server url. diff --git a/src/test/java/it/web/RetrieveProjectByIdITCase.java b/src/test/java/it/web/RetrieveProjectByIdITCase.java index aa12ca5..936e626 100644 --- a/src/test/java/it/web/RetrieveProjectByIdITCase.java +++ b/src/test/java/it/web/RetrieveProjectByIdITCase.java @@ -67,7 +67,7 @@ void retrievesProjectByIdSuccessfully() throws Exception { .header( HttpHeaders.AUTHORIZATION, "Bearer %s".formatted( - new AccessToken( + new KeycloakToken( KeycloakIntegration.KEYCLOAK.getAuthServerUrl() ).value() ) diff --git a/src/test/java/it/web/RetrieveProjectsByUserITCase.java b/src/test/java/it/web/RetrieveProjectsByUserITCase.java index 65b346d..f08dcbf 100644 --- a/src/test/java/it/web/RetrieveProjectsByUserITCase.java +++ b/src/test/java/it/web/RetrieveProjectsByUserITCase.java @@ -67,7 +67,7 @@ void retrievesProjectByIdSuccessfully() throws Exception { .header( HttpHeaders.AUTHORIZATION, "Bearer %s".formatted( - new AccessToken( + new KeycloakToken( KeycloakIntegration.KEYCLOAK.getAuthServerUrl() ).value() )