Shift Builder<P> from toInstance() to build()
[yangtools.git] / restconf / restconf-util / src / test / java / org / opendaylight / yangtools / restconf / utils / Bug1196Test.java
index 20c68aeb31e7cb5ca107a1c858ac3141edebeacf..7b8be180a53b50a61c781eb0750e37529d167b91 100644 (file)
@@ -63,7 +63,7 @@ public class Bug1196Test {
     @Test
     public void testXmlDataToDataObjectLinuxCase() {
         final InstanceIdentifier<Topology> 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<Topology> 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();