From 791a060a735da06d89ce1cc2f220ff20957b7a3e Mon Sep 17 00:00:00 2001 From: Raj Shah Date: Wed, 30 Aug 2023 15:46:28 +0530 Subject: [PATCH] Updated method name in test case --- .../unit/lib/salesforce/helper/SalesforceOAuthTokenTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/com/salessparrow/api/unit/lib/salesforce/helper/SalesforceOAuthTokenTest.java b/src/test/java/com/salessparrow/api/unit/lib/salesforce/helper/SalesforceOAuthTokenTest.java index 49430fff..8f3b1c0b 100644 --- a/src/test/java/com/salessparrow/api/unit/lib/salesforce/helper/SalesforceOAuthTokenTest.java +++ b/src/test/java/com/salessparrow/api/unit/lib/salesforce/helper/SalesforceOAuthTokenTest.java @@ -73,7 +73,7 @@ public void testUpdateAndGetRefreshedAccessToken() throws Exception { when(awsKms.encryptToken("new_access_token")).thenReturn("encrypted_access_token"); - when(salesforceOauthTokenRepository.saveSalesforceOauthToken(any(SalesforceOauthToken.class))) + when(salesforceOauthTokenRepository.updateSalesforceOauthToken(any(SalesforceOauthToken.class))) .thenAnswer(invocation -> invocation.getArgument(0)); // Return the argument back String decryptedAccessToken = salesforceOauthToken.updateAndGetRefreshedAccessToken(sfOAuthToken);