Eliminate unnecessary blocking checks
[netconf.git] / restconf / restconf-nb-rfc8040 / src / test / java / org / opendaylight / restconf / nb / rfc8040 / rests / utils / PutDataTransactionUtilTest.java
index 7b436632be149921df4eedde4817879a6b4c5e36..6c95fff1ab93c05cc5b4ab8cbecb22915ee48359 100644 (file)
@@ -245,7 +245,7 @@ public class PutDataTransactionUtilTest {
         PutDataTransactionUtil.putData(payload, this.schema, new NetconfRestconfStrategy(netconfService),
                 null, null);
         verify(this.netconfService).getConfig(payload.getInstanceIdentifierContext().getInstanceIdentifier());
-        verify(this.netconfService).create(LogicalDatastoreType.CONFIGURATION,
+        verify(this.netconfService).replace(LogicalDatastoreType.CONFIGURATION,
                 payload.getInstanceIdentifierContext().getInstanceIdentifier(), payload.getData(), Optional.empty());
     }
 
@@ -299,7 +299,7 @@ public class PutDataTransactionUtilTest {
         PutDataTransactionUtil.putData(payload, this.schema, new NetconfRestconfStrategy(netconfService),
                 null, null);
         verify(this.netconfService).getConfig(payload.getInstanceIdentifierContext().getInstanceIdentifier());
-        verify(this.netconfService).create(LogicalDatastoreType.CONFIGURATION,
+        verify(this.netconfService).replace(LogicalDatastoreType.CONFIGURATION,
                 payload.getInstanceIdentifierContext().getInstanceIdentifier(), payload.getData(), Optional.empty());
     }
 
@@ -351,7 +351,7 @@ public class PutDataTransactionUtilTest {
         PutDataTransactionUtil.putData(payload, this.schema, new NetconfRestconfStrategy(netconfService),
                 null, null);
         verify(this.netconfService).getConfig(this.iid2);
-        verify(this.netconfService).create(LogicalDatastoreType.CONFIGURATION, this.iid2,
+        verify(this.netconfService).replace(LogicalDatastoreType.CONFIGURATION, this.iid2,
                 payload.getData(), Optional.empty());
     }