X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=restconf%2Frestconf-util%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Frestconf%2Futils%2FBug1196Test.java;h=7b8be180a53b50a61c781eb0750e37529d167b91;hb=8f32d8ac5a6e4ab6a99832b5849b4761d1360430;hp=20c68aeb31e7cb5ca107a1c858ac3141edebeacf;hpb=cd29fdc769e3dee857c923bdac74f02c453ceaa5;p=yangtools.git diff --git a/restconf/restconf-util/src/test/java/org/opendaylight/yangtools/restconf/utils/Bug1196Test.java b/restconf/restconf-util/src/test/java/org/opendaylight/yangtools/restconf/utils/Bug1196Test.java index 20c68aeb31..7b8be180a5 100644 --- a/restconf/restconf-util/src/test/java/org/opendaylight/yangtools/restconf/utils/Bug1196Test.java +++ b/restconf/restconf-util/src/test/java/org/opendaylight/yangtools/restconf/utils/Bug1196Test.java @@ -63,7 +63,7 @@ public class Bug1196Test { @Test public void testXmlDataToDataObjectLinuxCase() { final InstanceIdentifier instanceIdentifier = InstanceIdentifier.builder(NetworkTopology.class) - .child(Topology.class, new TopologyKey(new TopologyId("example-pcep-topology"))).toInstance(); + .child(Topology.class, new TopologyKey(new TopologyId("example-pcep-topology"))).build(); final InputStream is = this.getClass().getClassLoader().getResourceAsStream("topology-bug1196-linux.xml"); final DataSchemaNode dataSchema = RestconfUtils.toRestconfIdentifier(instanceIdentifier, this.mappingService, this.mappingService.getSchemaContext()).getValue(); @@ -98,7 +98,7 @@ public class Bug1196Test { @Test public void testXmlDataToDataObjectUnixCase() { final InstanceIdentifier instanceIdentifier = InstanceIdentifier.builder(NetworkTopology.class) - .child(Topology.class, new TopologyKey(new TopologyId("example-pcep-topology"))).toInstance(); + .child(Topology.class, new TopologyKey(new TopologyId("example-pcep-topology"))).build(); final InputStream is = this.getClass().getClassLoader().getResourceAsStream("topology-bug1196-unix.xml"); final DataSchemaNode dataSchema = RestconfUtils.toRestconfIdentifier(instanceIdentifier, this.mappingService, this.mappingService.getSchemaContext()).getValue();