Migrate YangInstanceIdentifier.EMPTY users
[netconf.git] / restconf / restconf-nb-rfc8040 / src / test / java / org / opendaylight / restconf / nb / rfc8040 / utils / parser / ParserIdentifierTest.java
index 2ad973f7b6cbfb7b068dde3a22c6be2608e5b596..d5f3568b6b1a0baf16307a83c48c52ad4d8175c1 100644 (file)
@@ -128,7 +128,7 @@ public class ParserIdentifierTest {
 
         // register mount point with null schema context
         when(this.mockMountPoint.getSchemaContext()).thenReturn(null);
-        when(this.mockMountPointService.getMountPoint(YangInstanceIdentifier.EMPTY))
+        when(this.mockMountPointService.getMountPoint(YangInstanceIdentifier.empty()))
                 .thenReturn(Optional.of(this.mockMountPoint));
     }
 
@@ -190,7 +190,7 @@ public class ParserIdentifierTest {
         final InstanceIdentifierContext<?> context = ParserIdentifier.toInstanceIdentifier(
                 null, this.schemaContext, Optional.empty());
         assertEquals("Returned not expected identifier",
-                YangInstanceIdentifier.EMPTY, context.getInstanceIdentifier());
+                YangInstanceIdentifier.empty(), context.getInstanceIdentifier());
     }
 
     /**
@@ -211,7 +211,7 @@ public class ParserIdentifierTest {
         final InstanceIdentifierContext<?> context = ParserIdentifier.toInstanceIdentifier(
                 "", this.schemaContext, Optional.empty());
         assertEquals("Returned not expected identifier",
-                YangInstanceIdentifier.EMPTY, context.getInstanceIdentifier());
+                YangInstanceIdentifier.empty(), context.getInstanceIdentifier());
     }
 
     /**