X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=restconf%2Frestconf-nb-rfc8040%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Frestconf%2Fnb%2Frfc8040%2Frests%2Fservices%2Fimpl%2FRestconfDataServiceImplTest.java;h=d68b9905330c4ec4d63837ba1b2c556dbe53d0f0;hb=356549664dfaad57c9213a947a964a9f87ebe676;hp=ac87d3abc04f149889b75c644c04227bafcdcaab;hpb=bb567c97b6c9273011d6c33f8c22fd7841640f4f;p=netconf.git diff --git a/restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/RestconfDataServiceImplTest.java b/restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/RestconfDataServiceImplTest.java index ac87d3abc0..d68b990533 100644 --- a/restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/RestconfDataServiceImplTest.java +++ b/restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/RestconfDataServiceImplTest.java @@ -367,7 +367,7 @@ public class RestconfDataServiceImplTest { new InstanceIdentifierContext<>(this.iidBase, this.schemaNode, null, this.contextRef); final NormalizedNodeContext payload = new NormalizedNodeContext(iidContext, this.buildBaseCont); - doReturn(immediateTrueFluentFuture()).when(this.readWrite) + doReturn(immediateTrueFluentFuture()).when(this.read) .exists(LogicalDatastoreType.CONFIGURATION, this.iidBase); doNothing().when(this.readWrite).put(LogicalDatastoreType.CONFIGURATION, this.iidBase, payload.getData()); final Response response = this.dataService.putData(null, payload, this.uriInfo); @@ -385,7 +385,7 @@ public class RestconfDataServiceImplTest { new InstanceIdentifierContext<>(this.iidBase, this.schemaNode, mountPoint, this.contextRef); final NormalizedNodeContext payload = new NormalizedNodeContext(iidContext, this.buildBaseCont); - doReturn(immediateTrueFluentFuture()).when(this.readWrite) + doReturn(immediateTrueFluentFuture()).when(this.read) .exists(LogicalDatastoreType.CONFIGURATION, this.iidBase); doNothing().when(this.readWrite).put(LogicalDatastoreType.CONFIGURATION, this.iidBase, payload.getData()); final Response response = this.dataService.putData(null, payload, this.uriInfo); @@ -427,7 +427,7 @@ public class RestconfDataServiceImplTest { final YangInstanceIdentifier node = payload.getInstanceIdentifierContext().getInstanceIdentifier().node(identifier); doReturn(immediateFalseFluentFuture()) - .when(this.readWrite).exists(LogicalDatastoreType.CONFIGURATION, node); + .when(this.read).exists(LogicalDatastoreType.CONFIGURATION, node); doNothing().when(this.readWrite).put(LogicalDatastoreType.CONFIGURATION, node, entryNode); doReturn(UriBuilder.fromUri("http://localhost:8181/restconf/15/")).when(this.uriInfo).getBaseUriBuilder(); @@ -460,7 +460,7 @@ public class RestconfDataServiceImplTest { } @Test - public void testPatchData() throws Exception { + public void testPatchData() { final InstanceIdentifierContext iidContext = new InstanceIdentifierContext<>(this.iidBase, this.schemaNode, null, this.contextRef); final List entity = new ArrayList<>(); @@ -510,7 +510,7 @@ public class RestconfDataServiceImplTest { } @Test - public void testPatchDataDeleteNotExist() throws Exception { + public void testPatchDataDeleteNotExist() { final InstanceIdentifierContext iidContext = new InstanceIdentifierContext<>(this.iidBase, this.schemaNode, null, this.contextRef); final List entity = new ArrayList<>();