Fix deprecation warnings in restconf-nb
[netconf.git] / restconf / restconf-nb / src / test / java / org / opendaylight / restconf / nb / rfc8040 / jersey / providers / patch / XmlPatchBodyReaderTest.java
index d0826a3a38263545b3f6a5443f216bbd75cb6043..683370e1fd4be110ab765f8a8b41de4a1694791f 100644 (file)
@@ -164,7 +164,7 @@ public class XmlPatchBodyReaderTest extends AbstractBodyReaderTest {
         final var returnValue = xmlToPatchBodyReader.readFrom(null, null, null, mediaType, null, inputStream);
         checkPatchContext(returnValue);
         final var data = returnValue.getData().get(0).getNode();
-        assertEquals(CONT_AUG_QNAME, data.getIdentifier().getNodeType());
+        assertEquals(CONT_AUG_QNAME, data.name().getNodeType());
         assertEquals(expectedData, data);
     }
 
@@ -202,7 +202,7 @@ public class XmlPatchBodyReaderTest extends AbstractBodyReaderTest {
         final var returnValue = xmlToPatchBodyReader.readFrom(null, null, null, mediaType, null, inputStream);
         checkPatchContext(returnValue);
         final var data = returnValue.getData().get(0).getNode();
-        assertEquals(MAP_CONT_QNAME, data.getIdentifier().getNodeType());
+        assertEquals(MAP_CONT_QNAME, data.name().getNodeType());
         assertEquals(expectedData, data);
     }
 
@@ -236,7 +236,7 @@ public class XmlPatchBodyReaderTest extends AbstractBodyReaderTest {
         final var returnValue = xmlToPatchBodyReader.readFrom(null, null, null, mediaType, null, inputStream);
         checkPatchContext(returnValue);
         final var data = returnValue.getData().get(0).getNode();
-        assertEquals(LEAF_SET_QNAME, data.getIdentifier().getNodeType());
+        assertEquals(LEAF_SET_QNAME, data.name().getNodeType());
         assertEquals(expectedData, data);
     }
 
@@ -274,7 +274,7 @@ public class XmlPatchBodyReaderTest extends AbstractBodyReaderTest {
         final var returnValue = xmlToPatchBodyReader.readFrom(null, null, null, mediaType, null, inputStream);
         checkPatchContext(returnValue);
         final var data = returnValue.getData().get(0).getNode();
-        assertEquals(LIST_QNAME, data.getIdentifier().getNodeType());
+        assertEquals(LIST_QNAME, data.name().getNodeType());
         assertEquals(expectedData, data);
     }
 
@@ -307,7 +307,7 @@ public class XmlPatchBodyReaderTest extends AbstractBodyReaderTest {
         final var returnValue = xmlToPatchBodyReader.readFrom(null, null, null, mediaType, null, inputStream);
         checkPatchContext(returnValue);
         final var data = returnValue.getData().get(0).getNode();
-        assertEquals(CHOICE_CONT_QNAME, data.getIdentifier().getNodeType());
+        assertEquals(CHOICE_CONT_QNAME, data.name().getNodeType());
         assertEquals(expectedData, data);
     }
 
@@ -334,7 +334,7 @@ public class XmlPatchBodyReaderTest extends AbstractBodyReaderTest {
         final var returnValue = xmlToPatchBodyReader.readFrom(null, null, null, mediaType, null, inputStream);
         checkPatchContext(returnValue);
         final var data = returnValue.getData().get(0).getNode();
-        assertEquals(LEAF_NAME_QNAME, data.getIdentifier().getNodeType());
+        assertEquals(LEAF_NAME_QNAME, data.name().getNodeType());
         assertEquals(ImmutableNodes.leafNode(LEAF_NAME_QNAME, "my-leaf20"), data);
     }
 }