Bump to odlparent-9.0.0/yangtools-7.0.1-SNAPSHOT
[mdsal.git] / binding / mdsal-binding-dom-codec / src / test / java / org / opendaylight / mdsal / binding / dom / codec / impl / UnionTypeTest.java
index cbb7a42d1820aed047c9d12148a031932283bf50..99ad1587f9797124409e0072a9093867742b313b 100644 (file)
@@ -41,7 +41,7 @@ public class UnionTypeTest extends AbstractBindingCodecTest {
     public void unionTest() {
         TopLevel topLevel = TopLevelBuilder.getDefaultInstance(TEST_STRING);
         Wrapper wrapper = new WrapperBuilder().setWrap(topLevel).build();
-        NormalizedNode<?, ?> topLevelEntry = codecContext.toNormalizedNode(InstanceIdentifier.create(Wrapper.class),
+        NormalizedNode topLevelEntry = codecContext.toNormalizedNode(InstanceIdentifier.create(Wrapper.class),
             wrapper).getValue();
 
         ContainerNode containerNode = ImmutableContainerNodeBuilder.create()
@@ -55,11 +55,11 @@ public class UnionTypeTest extends AbstractBindingCodecTest {
     public void bug5446Test() {
         IpAddressBinary ipAddress = IpAddressBinaryBuilder.getDefaultInstance("fwAAAQ==");
         Root root = new RootBuilder().setIpAddress(ipAddress).build();
-        NormalizedNode<?, ?> rootNode = codecContext.toNormalizedNode(InstanceIdentifier.create(Root.class), root)
+        NormalizedNode rootNode = codecContext.toNormalizedNode(InstanceIdentifier.create(Root.class), root)
                 .getValue();
 
         Entry<InstanceIdentifier<?>, DataObject> rootEntry = codecContext.fromNormalizedNode(
-                YangInstanceIdentifier.of(rootNode.getNodeType()), rootNode);
+                YangInstanceIdentifier.of(rootNode.getIdentifier().getNodeType()), rootNode);
 
         DataObject rootObj = rootEntry.getValue();
         assertTrue(rootObj instanceof Root);