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 --- .../src/test/java/org/openecomp/sdc/fe/impl/PluginStatusBLTest.java | 4 ++-- .../test/java/org/openecomp/sdc/fe/servlets/ConfigServletTest.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'catalog-fe/src/test/java') diff --git a/catalog-fe/src/test/java/org/openecomp/sdc/fe/impl/PluginStatusBLTest.java b/catalog-fe/src/test/java/org/openecomp/sdc/fe/impl/PluginStatusBLTest.java index 3a8bb347da..c70e55a9de 100644 --- a/catalog-fe/src/test/java/org/openecomp/sdc/fe/impl/PluginStatusBLTest.java +++ b/catalog-fe/src/test/java/org/openecomp/sdc/fe/impl/PluginStatusBLTest.java @@ -30,7 +30,7 @@ import static com.google.code.beanmatchers.BeanMatchers.hasValidBeanConstructor; import static org.hamcrest.CoreMatchers.allOf; import static org.hamcrest.MatcherAssert.assertThat; import static org.mockito.Mockito.when; -import static org.mockito.MockitoAnnotations.initMocks; +import static org.mockito.MockitoAnnotations.openMocks; public class PluginStatusBLTest { @@ -40,7 +40,7 @@ public class PluginStatusBLTest { @Before public void setUp() { - initMocks(this); + openMocks(this); } @Test diff --git a/catalog-fe/src/test/java/org/openecomp/sdc/fe/servlets/ConfigServletTest.java b/catalog-fe/src/test/java/org/openecomp/sdc/fe/servlets/ConfigServletTest.java index 1bc3a06e9a..733f2353d9 100644 --- a/catalog-fe/src/test/java/org/openecomp/sdc/fe/servlets/ConfigServletTest.java +++ b/catalog-fe/src/test/java/org/openecomp/sdc/fe/servlets/ConfigServletTest.java @@ -41,7 +41,7 @@ import javax.ws.rs.core.Response; import static org.junit.Assert.assertEquals; import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.when; -import static org.mockito.MockitoAnnotations.initMocks; +import static org.mockito.MockitoAnnotations.openMocks; public class ConfigServletTest { @@ -60,7 +60,7 @@ public class ConfigServletTest { @Before public void setUp() { - initMocks(this); + openMocks(this); String appConfigDir = "src/test/resources/config/catalog-fe"; ConfigurationSource configurationSource = new FSConfigurationSource(ExternalConfiguration.getChangeListener(), appConfigDir); -- cgit 1.2.3-korg