Shift Builder<P> from toInstance() to build()
[yangtools.git] / restconf / restconf-util / src / test / java / org / opendaylight / yangtools / restconf / utils / Bug527Test.java
index 6d66f9261f61807c34e7a42a7ee509a1b58aa7f3..97a47cb2753091f530c1152850cc8ea871668ba8 100644 (file)
@@ -55,7 +55,7 @@ public class Bug527Test {
 
     @Test
     public void testToDataObjectMappingWithNestedAugmentations() {
-        InstanceIdentifier<Factory> factoryId = InstanceIdentifier.builder(Factory.class).toInstance();
+        InstanceIdentifier<Factory> factoryId = InstanceIdentifier.builder(Factory.class).build();
         InputStream is = this.getClass().getClassLoader().getResourceAsStream("topology-bug527.xml");
         DataSchemaNode dataSchema = RestconfUtils.toRestconfIdentifier(factoryId, mappingService,
                 mappingService.getSchemaContext()).getValue();