Fixup SchemaNodeIdentifier design
[yangtools.git] / yang / yang-parser-rfc7950 / src / test / java / org / opendaylight / yangtools / yang / stmt / Bug5946Test.java
index 8a3018c9fadf4c762f9d39edccd2fcd0921bc9a5..ee20186e6fcabad39e4e07f55f10fdeabf508676 100644 (file)
@@ -35,9 +35,9 @@ public class Bug5946Test {
     private static final QName WITHOUT_UNIQUE = QName.create(NS, REV, "without-unique");
     private static final QName SIMPLE_UNIQUE = QName.create(NS, REV, "simple-unique");
     private static final QName MULTIPLE_UNIQUE = QName.create(NS, REV, "multiple-unique");
-    private static final SchemaNodeIdentifier L1_ID = SchemaNodeIdentifier.create(false, L1);
-    private static final SchemaNodeIdentifier L2_ID = SchemaNodeIdentifier.create(false, L2);
-    private static final SchemaNodeIdentifier C_L3_ID = SchemaNodeIdentifier.create(false, C, L3);
+    private static final SchemaNodeIdentifier L1_ID = SchemaNodeIdentifier.Descendant.of(L1);
+    private static final SchemaNodeIdentifier L2_ID = SchemaNodeIdentifier.Descendant.of(L2);
+    private static final SchemaNodeIdentifier C_L3_ID = SchemaNodeIdentifier.Descendant.of(C, L3);
 
     @Test
     public void test() throws Exception {