Update NodeIdentifierWithPredicates construction
[netconf.git] / restconf / restconf-nb-bierman02 / src / test / java / org / opendaylight / controller / sal / restconf / impl / test / CutDataToCorrectDepthTest.java
index 0128a9323f13a850aa1096ffd338d62293915667..6c448e26ee1bd5e7653c178a1b456110006689aa 100644 (file)
@@ -309,8 +309,7 @@ public class CutDataToCorrectDepthTest extends JerseyTest {
     }
 
     private static NodeIdentifierWithPredicates toIdentifier(final String localName, final Map<QName, Object> keys) {
-        return new NodeIdentifierWithPredicates(QName.create("urn:nested:module", "2014-06-03", localName),
-                keys);
+        return NodeIdentifierWithPredicates.of(QName.create("urn:nested:module", "2014-06-03", localName), keys);
     }
 
     private static NodeWithValue<?> toIdentifier(final String localName, final Object value) {