X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-binding-dom-it%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fbinding%2Ftest%2Fconnect%2Fdom%2FDOMRpcServiceTestBugfix560.java;h=c87b93625f4e4a0bc653b8e169eec56fe244f22f;hp=6a6af0687a9046f45fa82d262246af8fbbc329f1;hb=5ce59af75c7f53e05fccb55b6cf03350ab0eebac;hpb=55e562009629fcc7163f1f05261de4b2ce4b1e77 diff --git a/opendaylight/md-sal/sal-binding-dom-it/src/test/java/org/opendaylight/controller/sal/binding/test/connect/dom/DOMRpcServiceTestBugfix560.java b/opendaylight/md-sal/sal-binding-dom-it/src/test/java/org/opendaylight/controller/sal/binding/test/connect/dom/DOMRpcServiceTestBugfix560.java index 6a6af0687a..c87b93625f 100644 --- a/opendaylight/md-sal/sal-binding-dom-it/src/test/java/org/opendaylight/controller/sal/binding/test/connect/dom/DOMRpcServiceTestBugfix560.java +++ b/opendaylight/md-sal/sal-binding-dom-it/src/test/java/org/opendaylight/controller/sal/binding/test/connect/dom/DOMRpcServiceTestBugfix560.java @@ -97,12 +97,15 @@ public class DOMRpcServiceTestBugfix560 { assertNotNull(moduleStream); List rpcModels = Collections.singletonList(moduleStream); + @SuppressWarnings("deprecation") Set modules = parser.parseYangModelsFromStreams(rpcModels); - schemaContext = parser.resolveSchemaContext(modules); + @SuppressWarnings("deprecation") + SchemaContext mountSchemaContext = parser.resolveSchemaContext(modules); + schemaContext = mountSchemaContext; } private static org.opendaylight.yangtools.yang.data.api.InstanceIdentifier createBINodeIdentifier( - NodeId mountNode) { + final NodeId mountNode) { return org.opendaylight.yangtools.yang.data.api.InstanceIdentifier .builder().node(Nodes.QNAME) .nodeWithKey(Node.QNAME, NODE_ID_QNAME, mountNode.getValue()) @@ -110,13 +113,16 @@ public class DOMRpcServiceTestBugfix560 { } private static InstanceIdentifier createBANodeIdentifier( - NodeId mountNode) { + final NodeId mountNode) { return InstanceIdentifier.builder(Nodes.class) .child(Node.class, new NodeKey(mountNode)).toInstance(); } + @SuppressWarnings("deprecation") @Test public void test() throws ExecutionException, InterruptedException { + // FIXME: This is made to only make sure instance identifier codec + // for path is instantiated. testContext.getBindingDataBroker().readOperationalData(BA_MOUNT_ID); final MountProvisionInstance mountPoint = domMountPointService .createMountPoint(BI_MOUNT_ID); @@ -127,7 +133,7 @@ public class DOMRpcServiceTestBugfix560 { @Override public ListenableFuture> invokeRpc( - QName rpc, CompositeNode input) { + final QName rpc, final CompositeNode input) { return Futures.immediateFuture(Rpcs . getRpcResult(true));