Shift Builder<P> from toInstance() to build()
[yangtools.git] / restconf / restconf-util / src / test / java / org / opendaylight / yangtools / restconf / utils / RestconfUtilsTest.java
index dc79f118c38ad079053d600af7d2c7798655aded..a327389ef3f8961c97e9c817f1c474d043b0fd89 100644 (file)
@@ -45,7 +45,7 @@ public class RestconfUtilsTest {
     @Test
     public void firstTest() { // test static state collisions with the other test
         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");
         RestconfUtils.toRestconfIdentifier(instanceIdentifier, this.mappingService,
                 this.mappingService.getSchemaContext()).getValue();