package org.opendaylight.restconf.nb.rfc8040.rests.services.impl;
import static org.hamcrest.CoreMatchers.containsString;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertSame;
-import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.mockito.ArgumentMatchers.any;
final TransactionChainHandler txChainHandler = new TransactionChainHandler(mockDOMDataBroker);
final DOMMountPointServiceHandler mountPointServiceHandler =
- DOMMountPointServiceHandler.newInstance(mockMountPointService);
+ new DOMMountPointServiceHandler(mockMountPointService);
final DOMNotificationService mockNotificationService = mock(DOMNotificationService.class);
final ServicesWrapper servicesWrapper = ServicesWrapper.newInstance(schemaContextHandler,
doReturn(Optional.of(mockDOMDataBroker)).when(mockMountPoint).getService(DOMDataBroker.class);
- doReturn(Optional.of(mockMountPoint))
- .when(mockMountPointService).getMountPoint(notNull(YangInstanceIdentifier.class));
+ doReturn(Optional.of(mockMountPoint)).when(mockMountPointService).getMountPoint(notNull());
return mockMountPoint;
}