Skip to content

Commit

Permalink
fix error messsage
Browse files Browse the repository at this point in the history
  • Loading branch information
shashimalcse committed Aug 14, 2024
1 parent e5297d0 commit 7c2d389
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.");

}

Expand All @@ -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.");
}

/**
Expand Down

0 comments on commit 7c2d389

Please sign in to comment.