From 0ed89748a4c7b4def76f5a3479410946ca75f389 Mon Sep 17 00:00:00 2001 From: edyta Date: Wed, 1 Apr 2020 15:16:37 +0200 Subject: Fix sonar issue Password Issue-ID: AAF-1118 Signed-off-by: Edyta Krukowska Change-Id: I07b50976f57c97c17ae5ffcd36775c7aba089c4f --- .../certification/conversion/KeystoreTruststoreCreatorTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'certServiceClient/src/test/java') diff --git a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/conversion/KeystoreTruststoreCreatorTest.java b/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/conversion/KeystoreTruststoreCreatorTest.java index 04bccf0b..5921c316 100644 --- a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/conversion/KeystoreTruststoreCreatorTest.java +++ b/certServiceClient/src/test/java/org/onap/aaf/certservice/client/certification/conversion/KeystoreTruststoreCreatorTest.java @@ -54,7 +54,7 @@ class KeystoreTruststoreCreatorTest { // then verify(passwordGenerator, times(1)).generate(passwordLength); verify(converter, times(1)).convertKeystore(certificates, password, alias, privateKey); - verify(filesCreator, times(1)).saveKeystoreData(keystoreBytes, password.getPassword()); + verify(filesCreator, times(1)).saveKeystoreData(keystoreBytes, password.getCurrentPassword()); } @Test @@ -75,6 +75,6 @@ class KeystoreTruststoreCreatorTest { // then verify(passwordGenerator, times(1)).generate(passwordLength); verify(converter, times(1)).convertTruststore(certificates, password, alias); - verify(filesCreator, times(1)).saveTruststoreData(truststoreBytes, password.getPassword()); + verify(filesCreator, times(1)).saveTruststoreData(truststoreBytes, password.getCurrentPassword()); } } \ No newline at end of file -- cgit 1.2.3-korg