Improve testing stability
[sdc.git] / catalog-be / src / test / java / org / openecomp / sdc / be / components / path / ForwardingPathValidatorTest.java
index ae44cea..eef8c80 100644 (file)
@@ -60,7 +60,7 @@ public class ForwardingPathValidatorTest implements ForwardingPathTestUtils {
 
     @BeforeEach
     public void init() {
-        MockitoAnnotations.initMocks(this);
+        MockitoAnnotations.openMocks(this);
         mock = Mockito.mock(ResponseFormatManager.class);
         when(toscaOperationFacade.getToscaElement(any(), any(ComponentParametersView.class))).thenReturn(Either.left(service));
         when(mock.getResponseFormat(any())).thenReturn(new ResponseFormat());