Integrate MRI projects for Neon
[netconf.git] / netconf / sal-netconf-connector / src / test / java / org / opendaylight / netconf / sal / connect / netconf / SchemalessNetconfDeviceTest.java
index 07bed0593d53b5e9059eae8897a7d7a71cd8ef75..3466294510c5b697629e4069934ad152fe4c0fe6 100644 (file)
@@ -8,7 +8,8 @@
 
 package org.opendaylight.netconf.sal.connect.netconf;
 
-import static org.mockito.Matchers.any;
+import static org.mockito.ArgumentMatchers.any;
+import static org.mockito.ArgumentMatchers.isNull;
 import static org.mockito.Mockito.doNothing;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.verify;
@@ -59,7 +60,7 @@ public class SchemalessNetconfDeviceTest {
                 any(SchemaContext.class), any(NetconfSessionPreferences.class), any(DOMRpcService.class));
 
         device.onNotification(netconfMessage);
-        verify(facade).onNotification(any(DOMNotification.class));
+        verify(facade).onNotification(isNull());
 
         device.onRemoteSessionDown();
         verify(facade).onDeviceDisconnected();