Bump upstream versions
[netconf.git] / netconf / mdsal-netconf-notification / src / test / java / org / opendaylight / netconf / mdsal / notification / impl / ops / NotificationsTransformUtilTest.java
index 4415e0b14ca5a12425f96afffa59b87d9da325eb..6f0e58dfde857124453788737f1323598c5f520e 100644 (file)
@@ -9,16 +9,16 @@ package org.opendaylight.netconf.mdsal.notification.impl.ops;
 
 import static org.junit.Assert.assertTrue;
 
-import com.google.common.collect.Lists;
 import java.io.IOException;
 import java.util.Date;
+import java.util.Set;
 import org.custommonkey.xmlunit.DetailedDiff;
 import org.custommonkey.xmlunit.Diff;
 import org.custommonkey.xmlunit.XMLUnit;
 import org.custommonkey.xmlunit.examples.RecursiveElementNameAndTextQualifier;
 import org.junit.BeforeClass;
 import org.junit.Test;
-import org.opendaylight.mdsal.binding.dom.codec.impl.DefaultBindingDOMCodecFactory;
+import org.opendaylight.mdsal.binding.dom.codec.impl.di.DefaultBindingDOMCodecFactory;
 import org.opendaylight.mdsal.binding.generator.impl.DefaultBindingRuntimeGenerator;
 import org.opendaylight.netconf.api.xml.XmlUtil;
 import org.opendaylight.netconf.notifications.NetconfNotification;
@@ -26,7 +26,8 @@ import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.notifications.rev120206.NetconfCapabilityChange;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.notifications.rev120206.NetconfCapabilityChangeBuilder;
 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
-import org.opendaylight.yangtools.yang.parser.impl.YangParserFactoryImpl;
+import org.opendaylight.yangtools.yang.parser.api.YangParserException;
+import org.opendaylight.yangtools.yang.parser.impl.DefaultYangParserFactory;
 import org.xml.sax.SAXException;
 
 public class NotificationsTransformUtilTest {
@@ -49,8 +50,8 @@ public class NotificationsTransformUtilTest {
     private static NotificationsTransformUtil UTIL;
 
     @BeforeClass
-    public static void beforeClass() {
-        UTIL = new NotificationsTransformUtil(new YangParserFactoryImpl(), new DefaultBindingRuntimeGenerator(),
+    public static void beforeClass() throws YangParserException {
+        UTIL = new NotificationsTransformUtil(new DefaultYangParserFactory(), new DefaultBindingRuntimeGenerator(),
             new DefaultBindingDOMCodecFactory());
     }
 
@@ -58,8 +59,8 @@ public class NotificationsTransformUtilTest {
     public void testTransform() throws Exception {
         final NetconfCapabilityChangeBuilder netconfCapabilityChangeBuilder = new NetconfCapabilityChangeBuilder();
 
-        netconfCapabilityChangeBuilder.setAddedCapability(Lists.newArrayList(new Uri("uri1"), new Uri("uri1")));
-        netconfCapabilityChangeBuilder.setDeletedCapability(Lists.newArrayList(new Uri("uri4"), new Uri("uri3")));
+        netconfCapabilityChangeBuilder.setAddedCapability(Set.of(new Uri("uri1")));
+        netconfCapabilityChangeBuilder.setDeletedCapability(Set.of(new Uri("uri4"), new Uri("uri3")));
 
         final NetconfCapabilityChange capabilityChange = netconfCapabilityChangeBuilder.build();
         final NetconfNotification transform = UTIL.transform(capabilityChange, DATE,