From b171a8e17cd19f4b327da73e8192945bc0e79a78 Mon Sep 17 00:00:00 2001 From: Thumimku Date: Wed, 23 Oct 2024 11:06:26 +0530 Subject: [PATCH] fix comments --- .../test/oauth2/OAuth2ServiceClientCredentialTestCase.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/oauth2/OAuth2ServiceClientCredentialTestCase.java b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/oauth2/OAuth2ServiceClientCredentialTestCase.java index 2c315cf9de..932b390e7e 100644 --- a/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/oauth2/OAuth2ServiceClientCredentialTestCase.java +++ b/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/oauth2/OAuth2ServiceClientCredentialTestCase.java @@ -166,7 +166,7 @@ public void testGetTokenUsingClientCredentialsGrant() throws Exception { HTTPResponse tokenHTTPResp = request.toHTTPRequest().send(); Assert.assertNotNull(tokenHTTPResp, "Access token http response is null."); Assert.assertEquals(tokenHTTPResp.getContentType().toString(), "application/json", - "Token response did not indicate correct token response"); + "Token response did not indicate correct token response."); TokenResponse tokenResponse = TokenResponse.parse(tokenHTTPResp); Assert.assertTrue(tokenResponse.indicatesSuccess(), "Token response did not indicate success. Token request has failed."); @@ -270,7 +270,6 @@ public void testGetTokenUsingCCGrantWithInvalidClientCredentials() throws Except dependsOnMethods = "testGetTokenUsingCCGrantWithInvalidClientCredentials") public void testGetTokenUsingCCGrantWithoutCredentials() throws Exception { - List parameters = new ArrayList<>(); parameters.add(new BasicNameValuePair("grant_type", OAuth2Constant.OAUTH2_GRANT_TYPE_CLIENT_CREDENTIALS));