Skip to content

Commit

Permalink
SET-559 updated mocked function call in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
john-sobrepena-partior committed Aug 27, 2024
1 parent 71d9b8d commit 6c6e2fb
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,15 @@ private void setUpUtilMocks(KeyVaultConfig keyVaultConfig) {
eq(clientHttpRequestFactory),
any(VaultEndpoint.class)))
.thenReturn(clientAuthentication);
when(keyVaultServiceFactoryUtil.configureClientAuthentication(
eq(keyVaultConfig),
eq(envProvider),
eq(clientHttpRequestFactory),
any(VaultEndpoint.class),
anyString(),
anyString(),
anyString()))
.thenReturn(clientAuthentication);
when(keyVaultServiceFactoryUtil.getRestTemplateWithVaultNamespace(
anyString(), eq(clientHttpRequestFactory), any(VaultEndpoint.class)))
.thenReturn(restTemplateBuilder);
Expand Down

0 comments on commit 6c6e2fb

Please sign in to comment.