Bump upstreams to SNAPSHOTs
[netconf.git] / netconf / mdsal-netconf-yang-library / src / test / java / org / opendaylight / netconf / mdsal / yang / library / YangLibraryTest.java
index 248d6a6e780c0d682b69eff8d84303616bbc23f7..df6f80dd003c8dbfc66651cdf8019c87a2321d85 100644 (file)
@@ -5,12 +5,10 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.netconf.mdsal.yang.library;
 
 import com.google.common.collect.ImmutableMap;
-import java.util.Collections;
-import java.util.List;
+import java.util.Set;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.mockito.junit.MockitoJUnitRunner;
@@ -51,13 +49,13 @@ public class YangLibraryTest extends AbstractYangLibraryWriterTest {
                 .setNamespace(new Uri("test:namespace"))
                 .setRevision(new RevisionIdentifier("2013-07-22"))
                 .setSubmodule(ImmutableMap.of(sub.key(), sub))
-                .setFeature(List.of())
+                .setFeature(Set.of())
                 .build();
 
         Module yangLibrary = new ModuleBuilder().setName(new YangIdentifier("ietf-yang-library_2019-01-04"))
                 .setNamespace(new Uri("urn:ietf:params:xml:ns:yang:ietf-yang-library"))
                 .setRevision(new RevisionIdentifier("2019-01-04"))
-                .setFeature(List.of())
+                .setFeature(Set.of())
                 .build();
 
         ModuleSet modulesSet = new ModuleSetBuilder()
@@ -67,7 +65,7 @@ public class YangLibraryTest extends AbstractYangLibraryWriterTest {
 
 
         Schema schema = new SchemaBuilder().setName("state-schema")
-                .setModuleSet(Collections.singletonList(modulesSet.getName()))
+                .setModuleSet(Set.of(modulesSet.getName()))
                 .build();
 
         Datastore datastore = new DatastoreBuilder().setName(Operational.class)