Remove use NodeIdentifierWithPredices.getKeyValues()
[netconf.git] / restconf / restconf-nb-rfc8040 / src / test / java / org / opendaylight / restconf / nb / rfc8040 / rests / services / impl / JSONRestconfServiceRfc8040ImplTest.java
index e660130860a378325593be0c012bdbd36ff51c58..523bee0811947bd98f39d12c353dc15da9cfc02d 100644 (file)
@@ -33,7 +33,6 @@ import java.io.FileNotFoundException;
 import java.io.IOException;
 import java.nio.charset.StandardCharsets;
 import java.util.List;
-import java.util.Map;
 import java.util.Optional;
 import org.junit.Before;
 import org.junit.BeforeClass;
@@ -604,11 +603,12 @@ public class JSONRestconfServiceRfc8040ImplTest {
                 expNodeType = (QName) listEntry[0];
 
                 assertTrue(actual instanceof NodeIdentifierWithPredicates);
-                final Map<QName, Object> keyValues = ((NodeIdentifierWithPredicates)actual).getKeyValues();
-                assertEquals(String.format("Path arg %d keyValues size", index + 1), 1, keyValues.size());
+                final NodeIdentifierWithPredicates nip = (NodeIdentifierWithPredicates)actual;
+
+                assertEquals(String.format("Path arg %d keyValues size", index + 1), 1, nip.size());
                 final QName expKey = (QName) listEntry[1];
                 assertEquals(String.format("Path arg %d keyValue for %s", index + 1, expKey), listEntry[2],
-                        keyValues.get(expKey));
+                    nip.getValue(expKey));
             } else {
                 expNodeType = (QName) expArgs[index];
             }