X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-rest-connector%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Frestconf%2Fimpl%2Ftest%2FTestUtils.java;h=f89e2ccb60cac8ff9fda0caff166bc6d66842f65;hp=bfd14834d2ce13a7f98d615fcbc15b17bbca2e60;hb=874a18a9ce5dc09bc49922754bf8fb3e981fffb9;hpb=40c2487f8068ee8ba045798d3be716899c77a6e6 diff --git a/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/TestUtils.java b/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/TestUtils.java index bfd14834d2..f89e2ccb60 100644 --- a/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/TestUtils.java +++ b/opendaylight/md-sal/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/TestUtils.java @@ -182,8 +182,8 @@ public final class TestUtils { final InstanceIdentifierContext iiContext = ControllerContext.getInstance().toInstanceIdentifier(schemaNodePath); final DOMMountPoint mountPoint = iiContext.getMountPoint(); - final CompositeNode value = RestconfImpl.getInstance().normalizeNode(node, iiContext.getSchemaNode(), mountPoint); - final NormalizedNode normNodePayload = compositeNodeToDatastoreNormalizedNode(value, iiContext.getSchemaNode()); + final CompositeNode value = RestconfImpl.getInstance().normalizeNode(node, (DataSchemaNode) iiContext.getSchemaNode(), mountPoint); + final NormalizedNode normNodePayload = compositeNodeToDatastoreNormalizedNode(value, (DataSchemaNode) iiContext.getSchemaNode()); final NormalizedNodeContext normlNodeContext = new NormalizedNodeContext(iiContext, normNodePayload); restconf.updateConfigurationData(schemaNodePath, normlNodeContext); @@ -404,6 +404,11 @@ public final class TestUtils { predicate); } + /** + * @deprecated method has to be removed for Lithium release + * so please use prepareNormalizedNodeWithIetfInterfacesInterfacesData method + */ + @Deprecated public static CompositeNode prepareCompositeNodeWithIetfInterfacesInterfacesData() { final CompositeNodeBuilder interfaceBuilder = ImmutableCompositeNode.builder(); interfaceBuilder.addLeaf(buildQName("name", "dummy", "2014-07-29"), "eth0");