diff options
Diffstat (limited to 'catalog-fe/src/test/java')
-rw-r--r-- | catalog-fe/src/test/java/org/openecomp/sdc/fe/impl/PluginStatusBLTest.java | 4 | ||||
-rw-r--r-- | catalog-fe/src/test/java/org/openecomp/sdc/fe/servlets/ConfigServletTest.java | 4 |
2 files changed, 4 insertions, 4 deletions
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); |