From 65789dbc112c6d345e9dca5929cd6b52bf3407b3 Mon Sep 17 00:00:00 2001 From: hizmailovich Date: Tue, 23 Jan 2024 15:21:29 +0300 Subject: [PATCH] Token renamed --- src/test/java/it/web/{AccessToken.java => KeycloakToken.java} | 2 +- src/test/java/it/web/RetrieveProjectByIdITCase.java | 2 +- src/test/java/it/web/RetrieveProjectsByUserITCase.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename src/test/java/it/web/{AccessToken.java => KeycloakToken.java} (97%) 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() )