Bug 2690 - Yang-Data-Impl: write and then merge on same list in
[yangtools.git] / yang / yang-data-impl / src / test / java / org / opendaylight / yangtools / yang / data / impl / schema / tree / ListConstraintsValidationTest.java
index 7f4e20f8a6fb626eed56a9fd271d6813f1dee4a5..e866abb0d89d09102c3fe0e0ac20175b25ba638a 100644 (file)
@@ -117,7 +117,7 @@ public class ListConstraintsValidationTest {
                 .withChild(barEntryNode).build();
 
         final InMemoryDataTreeModification modificationTree = inMemoryDataTree.takeSnapshot().newModification();
-        modificationTree.merge(MIN_MAX_LIST_PATH, mapNode1);
+        modificationTree.write(MIN_MAX_LIST_PATH, mapNode1);
         modificationTree.merge(MIN_MAX_LIST_PATH, mapNode2);
         // TODO: check why write and then merge on list commits only "bar" child