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;
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));
}
}