From 7c2d38914e1002ce49b3d8f674eb26fe4fcd2444 Mon Sep 17 00:00:00 2001 From: Thilina Shashimal Senarath Date: Wed, 14 Aug 2024 11:30:14 +0530 Subject: [PATCH] fix error messsage --- .../test/oidc/OIDCAccessTokenAttributesTestCase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/oidc/OIDCAccessTokenAttributesTestCase.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/oidc/OIDCAccessTokenAttributesTestCase.java index eb2150289f..b36231bd67 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/oidc/OIDCAccessTokenAttributesTestCase.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/oidc/OIDCAccessTokenAttributesTestCase.java @@ -99,7 +99,7 @@ public void testValidateAccessTokenAttributesWithPasswordGrant() throws Exceptio refreshToken = response.then().extract().path("refresh_token"); Assert.assertNotNull(accessToken, "Access token is null"); JWTClaimsSet jwtClaimsSet = SignedJWT.parse(accessToken).getJWTClaimsSet(); - Assert.assertNotNull(jwtClaimsSet.getClaim("username"), "Invalid is null."); + Assert.assertNotNull(jwtClaimsSet.getClaim("username"), "Username is null."); } @@ -125,7 +125,7 @@ public void testValidateAccessTokenAttributesWithRefreshGrant() throws Exception refreshToken = response.then().extract().path("refresh_token"); Assert.assertNotNull(accessToken, "Access token is null"); JWTClaimsSet jwtClaimsSet = SignedJWT.parse(accessToken).getJWTClaimsSet(); - Assert.assertNotNull(jwtClaimsSet.getClaim("username"), "Invalid is null."); + Assert.assertNotNull(jwtClaimsSet.getClaim("username"), "Username is null."); } /**