Reduce list/map/entry strategy confusion
[yangtools.git] / yang / yang-data-impl / src / test / java / org / opendaylight / yangtools / yang / data / impl / schema / tree / MapEntryRootTest.java
index fee1b195e8ab63d3ed164273e4a6e512f84bc2ba..ea3854b445bb6570fe499bbfaa0077bea2d90972 100644 (file)
@@ -8,7 +8,7 @@
 package org.opendaylight.yangtools.yang.data.impl.schema.tree;
 
 import static org.hamcrest.CoreMatchers.instanceOf;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.junit.Assert.assertTrue;
 
 import org.junit.Test;
@@ -23,13 +23,13 @@ public class MapEntryRootTest extends AbstractTestModelTest {
     public void testMapEntryRoot() {
         final DataTreeConfiguration treeConfig = DataTreeConfiguration.builder(TreeType.OPERATIONAL).setRootPath(
             TestModel.TEST_PATH.node(TestModel.OUTER_LIST_QNAME).node(
-                new NodeIdentifierWithPredicates(TestModel.OUTER_LIST_QNAME, TestModel.ID_QNAME, (short) 12))).build();
+                NodeIdentifierWithPredicates.of(TestModel.OUTER_LIST_QNAME, TestModel.ID_QNAME, (short) 12))).build();
         final DataTree dataTree = new InMemoryDataTreeFactory().create(treeConfig, SCHEMA_CONTEXT);
         assertTrue(dataTree instanceof InMemoryDataTree);
 
         final InMemoryDataTree imdt = (InMemoryDataTree) dataTree;
         final InMemoryDataTreeModification mod = imdt.takeSnapshot().newModification();
         final ModificationApplyOperation strategy = mod.getStrategy();
-        assertThat(strategy, instanceOf(ListEntryModificationStrategy.class));
+        assertThat(strategy, instanceOf(MapEntryModificationStrategy.class));
     }
 }