Migrate users of YangInstanceIdentifier.empty()
[netconf.git] / plugins / netconf-client-mdsal / src / test / java / org / opendaylight / netconf / client / mdsal / spi / NetconfDeviceDataBrokerTest.java
index 5802fe782448d69fc19c5300dd73c0f2c976bab9..13a855b16d77e0eb5b33f1da7cf50dd0b08776d9 100644 (file)
@@ -106,14 +106,14 @@ public class NetconfDeviceDataBrokerTest {
 
         // read-only transaction
         final NetconfDOMFieldsReadTransaction roTx = fieldsExtension.newReadOnlyTransaction();
-        roTx.read(LogicalDatastoreType.CONFIGURATION, YangInstanceIdentifier.empty(),
-                List.of(YangInstanceIdentifier.empty()));
+        roTx.read(LogicalDatastoreType.CONFIGURATION, YangInstanceIdentifier.of(),
+                List.of(YangInstanceIdentifier.of()));
         verify(rpcService).invokeNetconf(Mockito.eq(NETCONF_GET_CONFIG_QNAME), any());
 
         // read-write transaction
         final NetconfDOMFieldsReadWriteTransaction rwTx = fieldsExtension.newReadWriteTransaction();
-        rwTx.read(LogicalDatastoreType.OPERATIONAL, YangInstanceIdentifier.empty(),
-                List.of(YangInstanceIdentifier.empty()));
+        rwTx.read(LogicalDatastoreType.OPERATIONAL, YangInstanceIdentifier.of(),
+                List.of(YangInstanceIdentifier.of()));
         verify(rpcService).invokeNetconf(Mockito.eq(NETCONF_GET_QNAME), any());
     }