Improve testing stability
[sdc.git] / catalog-model / src / test / java / org / openecomp / sdc / be / model / operations / impl / InterfaceLifecycleOperationTest.java
index 7ccf1f6..b8230ff 100644 (file)
@@ -80,7 +80,7 @@ public class InterfaceLifecycleOperationTest {
 
     @BeforeEach
     public void createUserAndCategory() {
-        MockitoAnnotations.initMocks(this);
+        MockitoAnnotations.openMocks(this);
         CategoryData categoryData = new CategoryData(NodeTypeEnum.ResourceCategory);
         when(janusGraphGenericDao.createNode(any(), any())).thenReturn(Either.left(categoryData));
         deleteAndCreateCategory(CATEGORY_NAME);