Modernize YangInstanceIdentifier
[yangtools.git] / data / yang-data-tree-ri / src / test / java / org / opendaylight / yangtools / yang / data / tree / impl / DataTreeCandidatesTest.java
index ec76f707e41236b1801c0882e819685fe5461611..d556ad7c22cf22be3675377bd4aa10a2587bdd60 100644 (file)
@@ -143,7 +143,7 @@ public class DataTreeCandidatesTest extends AbstractTestModelTest {
         dataTree.validate(modification);
 
         final DataTreeCandidate candidate = dataTree.prepare(modification);
-        assertEquals(YangInstanceIdentifier.empty(), candidate.getRootPath());
+        assertEquals(YangInstanceIdentifier.of(), candidate.getRootPath());
         final DataTreeCandidateNode node = candidate.getRootNode();
         assertEquals(ModificationType.UNMODIFIED, node.getModificationType());
 
@@ -169,7 +169,7 @@ public class DataTreeCandidatesTest extends AbstractTestModelTest {
 
         // The entire transaction needs to fizzle to a no-op
         final DataTreeCandidate candidate = dataTree.prepare(modification);
-        assertEquals(YangInstanceIdentifier.empty(), candidate.getRootPath());
+        assertEquals(YangInstanceIdentifier.of(), candidate.getRootPath());
         final DataTreeCandidateNode node = candidate.getRootNode();
         assertEquals(ModificationType.UNMODIFIED, node.getModificationType());