package org.opendaylight.mdsal.binding.dom.codec.impl;
import static org.hamcrest.CoreMatchers.instanceOf;
+import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertSame;
-import static org.junit.Assert.assertThat;
import java.util.Map.Entry;
import javax.xml.transform.dom.DOMSource;
@Test
public void testAnydataToBinding() {
- final Entry<InstanceIdentifier<?>, DataObject> entry = registry.fromNormalizedNode(
+ final Entry<InstanceIdentifier<?>, DataObject> entry = codecContext.fromNormalizedNode(
YangInstanceIdentifier.create(CONT_NODE_ID), cont);
assertEquals(InstanceIdentifier.create(Cont.class), entry.getKey());
final DataObject ldo = entry.getValue();
@Test
public void testAnydataFromBinding() {
- final Entry<YangInstanceIdentifier, NormalizedNode<?, ?>> entry = registry.toNormalizedNode(
+ final Entry<YangInstanceIdentifier, NormalizedNode<?, ?>> entry = codecContext.toNormalizedNode(
InstanceIdentifier.create(Cont.class), new ContBuilder().setContAny(new FakeCont()).build());
assertEquals(YangInstanceIdentifier.create(CONT_NODE_ID), entry.getKey());
assertEquals(cont, entry.getValue());