aboutsummaryrefslogtreecommitdiffstats
path: root/common-be
diff options
context:
space:
mode:
Diffstat (limited to 'common-be')
-rw-r--r--common-be/src/test/java/org/openecomp/sdc/be/csar/security/CertificateManagerImplTest.java2
-rw-r--r--common-be/src/test/java/org/openecomp/sdc/be/csar/security/model/CertificateInfoImplTest.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/common-be/src/test/java/org/openecomp/sdc/be/csar/security/CertificateManagerImplTest.java b/common-be/src/test/java/org/openecomp/sdc/be/csar/security/CertificateManagerImplTest.java
index 6287c0e85b..2a099f7b1b 100644
--- a/common-be/src/test/java/org/openecomp/sdc/be/csar/security/CertificateManagerImplTest.java
+++ b/common-be/src/test/java/org/openecomp/sdc/be/csar/security/CertificateManagerImplTest.java
@@ -72,7 +72,7 @@ class CertificateManagerImplTest {
@BeforeEach
void setUp() throws CertificateNotYetValidException, CertificateExpiredException {
- MockitoAnnotations.initMocks(this);
+ MockitoAnnotations.openMocks(this);
when(environment.getProperty(CERT_DIR_ENV_VARIABLE)).thenReturn(certificateFolderPath.toString());
when(certificateMock.getType()).thenReturn("X.509");
doNothing().when(certificateMock).checkValidity();
diff --git a/common-be/src/test/java/org/openecomp/sdc/be/csar/security/model/CertificateInfoImplTest.java b/common-be/src/test/java/org/openecomp/sdc/be/csar/security/model/CertificateInfoImplTest.java
index 6b094130b0..bfcd70a5d8 100644
--- a/common-be/src/test/java/org/openecomp/sdc/be/csar/security/model/CertificateInfoImplTest.java
+++ b/common-be/src/test/java/org/openecomp/sdc/be/csar/security/model/CertificateInfoImplTest.java
@@ -43,7 +43,7 @@ class CertificateInfoImplTest {
@BeforeEach
void setUp() {
- MockitoAnnotations.initMocks(this);
+ MockitoAnnotations.openMocks(this);
}
@Test