Remove usage of deprecated initMocks method
[transportpce.git] / olm / src / test / java / org / opendaylight / transportpce / olm / service / OlmPowerServiceImplSpanLossBaseTest.java
index 79816bf2f83c57dc97de8dc7620707a47b5f3c21..68db7160c624dc0d5540c3c3fdc3d478455b929c 100644 (file)
@@ -85,7 +85,7 @@ public class OlmPowerServiceImplSpanLossBaseTest extends AbstractTest {
         this.olmPowerService = new OlmPowerServiceImpl(getDataBroker(), this.powerMgmt,
                 this.deviceTransactionManager, this.portMapping, this.mappingUtils, this.openRoadmInterfaces);
         this.dataBroker = getDataBroker();
-        MockitoAnnotations.initMocks(this);
+        MockitoAnnotations.openMocks(this);
         Mockito.doReturn(StringConstants.OPENROADM_DEVICE_VERSION_2_2_1).when(this.mappingUtils)
                 .getOpenRoadmVersion(Mockito.anyString());