From 0fbe309f797b4cdac9d507a6f3dfd193644aa224 Mon Sep 17 00:00:00 2001 From: vasraz Date: Mon, 10 Jan 2022 19:23:57 +0000 Subject: Improve testing stability Signed-off-by: Vasyl Razinkov Change-Id: I3f631642a97e65d6628816767e0a5408f02f4bc6 Issue-ID: SDC-3839 --- .../org/openecomp/sdc/be/csar/security/CertificateManagerImplTest.java | 2 +- .../openecomp/sdc/be/csar/security/model/CertificateInfoImplTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'common-be') 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 -- cgit 1.2.3-korg