Skip to content

Commit

Permalink
Updated method name in test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Raj-Shah1 committed Aug 30, 2023
1 parent 319d790 commit 791a060
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 791a060

Please sign in to comment.